5 ms·
What would you use for string handling, then? Please don't tell me you prefer strcpy/strcat and zero-terminated strings?
by wladimir 15y ago
What would you use for string handling, then? Please don't tell me you prefer strcpy/strcat and zero-terminated strings?
- cageface 15y agoYou could use bstring: http://bstring.sourceforge.net/ http://bstring.sourceforge.net/
- cygx 15y agoDepending on the use case, libc, Windows API or ICU. Personally, I'd like to see a simple C string library using modified UTF-8 (to be compatible with ASCIIZ) which is grapheme aware. I'm tempted to take a shot at writing one myself, but haven't gotten around to it yet. If anyone is interested, see http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries for the algorithm and http://www.unicode.org/Public/UNIDATA/auxiliary/GraphemeBreakProperty.txt http://www.unicode.org/Public/UNIDATA/auxiliary/GraphemeBrea... for the property data...
- ExpiredLink 15y agoA class or template that doesn't need 3 template parameters.