Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » WString vs Grapheme Cluster idea (with possible flaw)
Re: WString vs Grapheme Cluster idea (with possible flaw) [message #57115 is a reply to message #57114] Wed, 26 May 2021 11:27 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
Didier wrote on Wed, 26 May 2021 10:52
Well it really depends on how this is done.

One thing is for sure, all 4 000 000 000 graphemes won't be used at the same time
If we look at how virtual memory is managed, it's just about the same: we have a huge virtual memory but use only a tiny bit of it.
I don't know if it's feasable for graphemes since this has to be performant and we still would have the indirection table to manage which could be the killer


I think it would indeed work in most of cases. But those remaining ones probably make it unfeasible...

Quote:

Why not use UTF32 ? sounds like the same (from my very far and poor UTF knowledge)


Single grapheme can contain multiple unicode codepoints (that is, multiple UTF32 "characters"), yet we need to treat it as single character in most of scenarios. UTF32 is incomplete solution.

Mirek

[Updated on: Wed, 26 May 2021 11:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using BLITZ in release mode CLANG
Next Topic: Using Pen with U++
Goto Forum:
  


Current Time: Sat May 11 21:35:30 CEST 2024

Total time taken to generate the page: 0.02765 seconds