Home
last modified time | relevance | path

Searched refs:sLength (Results 1 – 9 of 9) sorted by relevance

/external/icu4c/common/
Dcharstr.cpp48 CharString &CharString::append(const char *s, int32_t sLength, UErrorCode &errorCode) { in append() argument
52 if(sLength<-1 || (s==NULL && sLength!=0)) { in append()
56 if(sLength<0) { in append()
57 sLength=uprv_strlen(s); in append()
59 if(sLength>0) { in append()
62 if(sLength>=(buffer.getCapacity()-len)) { in append()
66 buffer[len+=sLength]=0; in append()
69 sLength>=(buffer.getCapacity()-len) in append()
73 return append(CharString(s, sLength, errorCode), errorCode); in append()
74 } else if(ensureCapacity(len+sLength+1, 0, errorCode)) { in append()
[all …]
Ducharstrie.cpp157 UCharsTrie::next(const UChar *s, int32_t sLength) { in next() argument
158 if(sLength<0 ? *s==0 : sLength==0) { in next()
171 if(sLength<0) { in next()
193 if(sLength==0) { in next()
201 --sLength; in next()
222 if(sLength<0) { in next()
227 if(sLength==0) { in next()
231 --sLength; in next()
Dbytestrie.cpp207 BytesTrie::next(const char *s, int32_t sLength) { in next() argument
208 if(sLength<0 ? *s==0 : sLength==0) { in next()
221 if(sLength<0) { in next()
243 if(sLength==0) { in next()
251 --sLength; in next()
272 if(sLength<0) { in next()
277 if(sLength==0) { in next()
281 --sLength; in next()
Dcharstr.h50 CharString(const char *s, int32_t sLength, UErrorCode &errorCode) : len(0) { in CharString() argument
52 append(s, sLength, errorCode); in CharString()
82 CharString &append(const char *s, int32_t sLength, UErrorCode &status);
/external/icu4c/test/cintltst/
Ducsdetst.c123 int32_t byteLength = 0, sLength = 0, dLength = 0; in TestUTF8() local
130 sLength = u_unescape(ss, s, sizeof(ss)); in TestUTF8()
131 bytes = extractBytes(s, sLength, "UTF-8", &byteLength); in TestUTF8()
146 dLength = ucsdet_getUChars(match, detected, sLength, &status); in TestUTF8()
148 if (u_strCompare(detected, dLength, s, sLength, FALSE) != 0) { in TestUTF8()
284 int32_t sLength = 0; in TestInputFilter() local
292 sLength = u_unescape(ss, s, sizeof(ss)); in TestInputFilter()
293 bytes = extractBytes(s, sLength, "ISO-8859-1", &byteLength); in TestInputFilter()
Dbocu1tst.c736 int32_t c, i, sLength; in readString() local
738 i=sLength=0; in readString()
746 UTF_APPEND_CHAR_UNSAFE(s, sLength, c); in readString()
749 return sLength; in readString()
/external/icu4c/common/unicode/
Duniset.h1654 int32_t sLength=s.length(); in span() local
1657 } else if(start>sLength) { in span()
1658 start=sLength; in span()
1660 return start+span(s.getBuffer()+start, sLength-start, spanCondition); in span()
1664 int32_t sLength=s.length(); in spanBack() local
1667 } else if(limit>sLength) { in spanBack()
1668 limit=sLength; in spanBack()
/external/icu4c/test/intltest/
Dcsdetest.cpp127 int32_t sLength = source.length(); in extractBytes() local
130 length = source.extract(0, sLength, NULL, codepage); in extractBytes()
134 source.extract(0, sLength, bytes, codepage); in extractBytes()
276 int32_t byteLength = 0, sLength = s.length(); in UTF8Test() local
280 UChar *detected = NEW_ARRAY(UChar, sLength); in UTF8Test()
290 ucsdet_getUChars(match, detected, sLength, &status); in UTF8Test()
292 if (s.compare(detected, sLength) != 0) { in UTF8Test()
/external/icu4c/i18n/
Dmsgfmt.cpp191 void append(const UChar* s, const int32_t sLength) { in append() argument
192 app.appendString(s, sLength); in append()
193 len += sLength; in append()