FLTK logo

Re: [fltk/fltk] Docs for fl_utf8*() functions could use some code examples (#125)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Docs for fl_utf8*() functions could use some code examples (#125) "Lars H. Rohwedder" Nov 26, 2020  
 

Also, the docs for the two fl_utf8len*() functions should cover the fact that a '\0' (null) passed to them
currently returns 1. I'd offer they should both return a length of 0 instead, but either way, the return value
should be documented for this corner case.

A char with value 0 in an UTF-8 string represents the Unicode character U+0000 and is nothing special at all. Yes, the NUL char is used in C as "string terminator" (and is considered as not part of the string) but that's a C thing, not a Unicode thing. If you have a C++ std::string than NUL char's in it are completely okay.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.