C

C stands for Control.
Apr 2, 2022 04:54
but the thing is that even icu4c samples code also showing this behavior
Apr 2, 2022 04:54
Unless I'm missed something very obviously
Apr 2, 2022 04:39
I don't think it a bug since icu4c-demos.unicode.org/icu-bin/icusegments#0/en worked and it's also version 70.1 (as stated at the bottom)
Apr 1, 2022 02:16
or something else I'm missing?
Apr 1, 2022 02:16
no idea if I have to download cldr for grapheme cluster data? github.com/unicode-org/cldr/releases/tag/release-40
Apr 1, 2022 02:01
like wtf
Apr 1, 2022 02:01
no matter what I tried it still print 18
Apr 1, 2022 01:59
since BreakIterator in C++ should be same as ubrk in C
Apr 1, 2022 01:59
ЁЯШВ
Apr 1, 2022 01:59
wasted probably ~8 hours looking around at Google and there's still no good explaination
Apr 1, 2022 01:58
but in my case it print 18 for both?
Apr 1, 2022 01:58
in their example it should print 6 and 4 respectively
Apr 1, 2022 01:58
Apr 1, 2022 01:57
20
Q: Cross-platform iteration of Unicode string (counting Graphemes using ICU)

kizzx2I want to iterate each character of a Unicode string, treating each surrogate pair and combining character sequence as a single unit (one grapheme). Example The text "рдирдорд╕реНрддреЗ" is comprised of the code points: U+0928, U+092E, U+0938, U+094D, U+0924, U+0947, of which, U+0938 and U+0947 are combini...

Apr 1, 2022 01:57
there's also this
Apr 1, 2022 01:56
break.cpp example
Apr 1, 2022 00:11
I'm pretty sure I copy-pasted the example at github.com/unicode-org/icu/tree/main/icu4c/source/samples/break
Apr 1, 2022 00:06
why BreakIterator break at the middle of the character?
Apr 1, 2022 00:06
weird
Apr 1, 2022 00:06
Mar 31, 2022 08:19
ouch
Mar 31, 2022 08:19
forgot to multiply
Mar 31, 2022 08:19
Mar 31, 2022 08:19
nvm found the problem
Mar 31, 2022 07:59
realloc even corrupt memory
Mar 31, 2022 07:58
since u_fgetc doesn't get entire multibyte character so I have to do this
Mar 31, 2022 07:57
Mar 31, 2022 07:57
uh why does this code sometimes crash at realloc and sometimes crash at end of main function?
Mar 31, 2022 07:57
Mar 30, 2022 22:00
there's no mentions about this in icu doc either
Mar 30, 2022 21:59
Mar 30, 2022 21:57
so something really wrong with u_printf
Mar 30, 2022 21:57
setvbuf is still there
Mar 30, 2022 21:57
weird
Mar 30, 2022 21:57
apparently removing the u_printf line the error is gone
Mar 30, 2022 21:56
anyways, fun fact
Mar 30, 2022 21:54
call stack?
Mar 30, 2022 21:54
Mar 30, 2022 21:54
Mar 30, 2022 21:53
maybe setvbuf(stdout is not the correct way
Mar 30, 2022 21:52
weird
Mar 30, 2022 21:51
interesting, the error caused upon exiting main function
Mar 30, 2022 21:51
at least this thing is step-by-step available to debug
Mar 30, 2022 21:50
yep same thing with NULL
Mar 30, 2022 21:50
hmm
Mar 30, 2022 21:50
https://i.imgur.com/GLtregp.png
I set my buf size to 512, but new error
Mar 30, 2022 21:44
ah so it does the check, not the actual buffer size change code
Mar 30, 2022 21:43
what is that macro?
Mar 30, 2022 21:42
isn't UChar have the size of uint16_t?