icu4c api proposal: UnicodeString p+len fns should recognize len=-1

Markus Scherer <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Organization IBM
Message-ID <[email protected]>
I propose to implement Jitterbug 2360, quote:

UnicodeString pointer+length functions should recognize length=-1 for NUL-terminated input.

There are some functions - at least the UnicodeString-from-codepage-char* constructors that do not 
recognize length=-1 for NUL-terminated input as most other ICU functions do. -1 should be recognized 
and strlen() called.


See "Using C Strings: NUL-Terminated vs. Length Parameters"/"Input string" in 
http://oss.software.ibm.com/icu/userguide/strings.html


Expiration: Friday, 2003-nov-07

Sincerely,
markus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.