/bionic/libc/upstream-netbsd/libc/string/ |
strxfrm.c | 55 size_t srclen, copysize; local 62 srclen = strlen(src); 65 copysize = srclen < n ? srclen : n - 1; 69 return (srclen);
|
/external/chromium_org/third_party/cld/encodings/compact_lang_det/win/ |
cld_utf8statetable.cc | 22 int* srclen) { 23 if (*srclen <= 0) { 38 *srclen -= 1; 39 } else if (((c & 0xe0) == 0xc0) && (*srclen >= 2)) { // two bytes 44 *srclen -= 2; 45 } else if (((c & 0xf0) == 0xe0) && (*srclen >= 3)) { // three bytes 52 *srclen -= 3; 53 }else if (((c & 0xf8) == 0xf0) && (*srclen >= 4)) { // four bytes 62 *srclen -= 4; 66 *srclen -= 1 [all...] |
/external/icu4c/test/perf/strsrchperf/ |
strsrchperf.cpp | 24 src = getBuffer(srcLen, status); 28 UBreakIterator* brk = ubrk_open(UBRK_WORD, locale, src, srcLen, &status); 63 srch = usearch_open(pttrn, pttrnLen, src, srcLen, locale, NULL, &status); 94 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUForwardSearch, srch, src, srcLen, pttrn, pttrnLen); 99 StringSearchPerfFunction* func = new StringSearchPerfFunction(ICUBackwardSearch, srch, src, srcLen, pttrn, pttrnLen);
|
/external/chromium_org/third_party/npapi/npspy/extern/nspr/ |
plbase64.h | 46 * base64 algorithm, and returns a pointer to the result. If the "srclen" 51 * calculated: ((srclen + 2)/3)*4) into which the encoded data is placed 63 PRUint32 srclen, 73 * "srclen" parameter is not zero, it specifies the length of the source 76 * a buffer of sufficient size (which may be calculated: (srclen * 3)/4 77 * when srclen includes the '=' characters) into which the decoded data 89 PRUint32 srclen,
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
InputPointersTests.java | 125 final int srcLen = 100; 126 for (int i = 0; i < srcLen; i++) { 149 dst.append(src, 0, srcLen); 150 assertEquals("size after append", dstLen + srcLen, dst.getPointerSize()); 152 dst.getPointerIds().length >= dstLen + srcLen); 162 src.getXCoordinates(), 0, dst.getXCoordinates(), dstLen, srcLen); 164 src.getYCoordinates(), 0, dst.getYCoordinates(), dstLen, srcLen); 166 src.getPointerIds(), 0, dst.getPointerIds(), dstLen, srcLen); 168 src.getTimes(), 0, dst.getTimes(), dstLen, srcLen); 172 final int srcLen = 100 [all...] |
/external/chromium_org/third_party/icu/source/tools/genrb/ |
rle.c | 148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { 152 *buffer++ = (uint16_t)(srcLen>>16); 157 *buffer++ = (uint16_t) srcLen; 159 for (; i<srcLen; ++i) { 194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { 198 *buffer++ = ((uint16_t) (srcLen >> 16)); 205 *buffer++=((uint16_t) srcLen); 206 for (; i<srcLen; ++i) { 239 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status) { 248 if(srcLen == -1) [all...] |
rle.h | 40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status); 63 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status); 68 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status);
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
stringencode.h | 48 size_t utf8_decode(const char* source, size_t srclen, unsigned long* value); 53 const char * source, size_t srclen, 57 const char * source, size_t srclen, 65 const char * source, size_t srclen, 69 const char * source, size_t srclen, 79 const char * source, size_t srclen); 82 const char * source, size_t srclen); 86 const char * source, size_t srclen); 89 const char * source, size_t srclen); 93 const char * source, size_t srclen); [all...] |
stringutils.cc | 88 const char* source, size_t srclen) { 92 if (srclen == SIZE_UNKNOWN) { 93 srclen = strlenn(source, buflen - 1); 94 } else if (srclen >= buflen) { 95 srclen = buflen - 1; 99 for (size_t pos = 0; pos < srclen; ++pos) 102 std::copy(source, source + srclen, buffer); 103 buffer[srclen] = 0; 104 return srclen;
|
stringutils.h | 199 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) { 203 if (srclen == SIZE_UNKNOWN) { 204 srclen = strlenn(source, buflen - 1); 205 } else if (srclen >= buflen) { 206 srclen = buflen - 1; 208 memcpy(buffer, source, srclen * sizeof(CTYPE)); 209 buffer[srclen] = 0; 210 return srclen; 215 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) { 220 return bufpos + strcpyn(buffer + bufpos, buflen - bufpos, source, srclen); [all...] |
/external/icu4c/tools/genrb/ |
rle.c | 148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status) { 152 *buffer++ = (uint16_t)(srcLen>>16); 157 *buffer++ = (uint16_t) srcLen; 159 for (; i<srcLen; ++i) { 194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status) { 198 *buffer++ = ((uint16_t) (srcLen >> 16)); 205 *buffer++=((uint16_t) srcLen); 206 for (; i<srcLen; ++i) { 239 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status) { 248 if(srcLen == -1) [all...] |
rle.h | 40 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode* status); 57 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* status); 63 rleStringToByteArray(uint16_t* src, int32_t srcLen, uint8_t* target, int32_t tgtLen, UErrorCode* status); 68 rleStringToUCharArray(uint16_t* src, int32_t srcLen, uint16_t* target, int32_t tgtLen, UErrorCode* status);
|
/external/lzma/C/ |
Lzma86.h | 71 SRes Lzma86_Encode(Byte *dest, size_t *destLen, const Byte *src, size_t srcLen,
79 srcLen - input data size
87 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize);
95 srcLen - input data size
98 srcLen - processed input size
107 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen);
|
Lzma2Dec.h | 52 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
55 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status);
77 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
XzDec.c | 124 static SRes BraState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
129 SizeT srcLenOrig = *srcLen;
131 *srcLen = 0;
157 *srcLen += curSize;
246 static SRes SbState_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
250 SRes res = SubblockDec_Decode((CSubblockDec *)pp, dest, destLen, src, srcLen, finishMode, &status);
293 static SRes Lzma2State_Code(void *pp, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
298 SRes res = Lzma2Dec_DecodeToBuf((CLzma2Dec *)pp, dest, destLen, src, srcLen, finishMode, &status);
376 const Byte *src, SizeT *srcLen, int srcWasFinished,
380 SizeT srcLenOrig = *srcLen;
[all...] |
/external/lzma/CPP/Common/ |
UTFConvert.cpp | 10 static Bool Utf8_To_Utf16(wchar_t *dest, size_t *destLen, const char *src, size_t srcLen)
17 if (srcPos == srcLen)
41 if (srcPos == srcLen)
74 static Bool Utf16_To_Utf8(char *dest, size_t *destLen, const wchar_t *src, size_t srcLen)
81 if (srcPos == srcLen)
97 if (value >= 0xDC00 || srcPos == srcLen)
|
/external/chromium_org/third_party/lzma_sdk/ |
Lzma2Dec.h | 52 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status); 55 const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status); 77 SRes Lzma2Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen,
|
/external/chromium/third_party/libjingle/source/talk/base/ |
stringutils.cc | 88 const char* source, size_t srclen) { 92 if (srclen == SIZE_UNKNOWN) { 93 srclen = strlenn(source, buflen - 1); 94 } else if (srclen >= buflen) { 95 srclen = buflen - 1; 99 for (size_t pos = 0; pos < srclen; ++pos) 102 std::copy(source, source + srclen, buffer); 103 buffer[srclen] = 0; 104 return srclen;
|
stringutils.h | 202 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) { 206 if (srclen == SIZE_UNKNOWN) { 207 srclen = strlenn(source, buflen - 1); 208 } else if (srclen >= buflen) { 209 srclen = buflen - 1; 211 memcpy(buffer, source, srclen * sizeof(CTYPE)); 212 buffer[srclen] = 0; 213 return srclen; 218 const CTYPE* source, size_t srclen = SIZE_UNKNOWN) { 223 return bufpos + strcpyn(buffer + bufpos, buflen - bufpos, source, srclen); [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
ResizableIntArrayTests.java | 207 final int srcLen = DEFAULT_CAPACITY; 208 final ResizableIntArray src = new ResizableIntArray(srcLen); 209 for (int i = 0; i < srcLen; i++) { 228 dst.append(src, 0, srcLen); 229 assertEquals("length after append", dstLen + srcLen, dst.getLength()); 232 dst.getPrimitiveArray().length >= dstLen + srcLen); 236 src.getPrimitiveArray(), 0, dst.getPrimitiveArray(), dstLen, srcLen); 238 dst.append(src, 0, srcLen); 239 assertEquals("length after 2nd append", dstLen + srcLen * 2, dst.getLength()); 242 dst.getPrimitiveArray().length >= dstLen + srcLen * 2) [all...] |
/external/qemu/distrib/sdl-1.2.15/src/stdlib/ |
SDL_iconv.c | 214 size_t srclen, dstlen; local 226 srclen = (inbytesleft ? *inbytesleft : 0); 235 size_t n = srclen / 2; 257 size_t n = srclen / 4; 303 while ( srclen > 0 ) { 311 --srclen; 319 --srclen; 403 --srclen; 404 if ( srclen < left ) { 419 --srclen; [all...] |
/build/tools/acp/ |
acp.c | 119 int srcLen; 122 srcLen = strlen(argv[i]); 123 src = malloc(srcLen+1); 124 memcpy(src, argv[i], srcLen+1); 126 if (src[srcLen-1] == FSSEP) 127 src[--srcLen] = '\0';
|
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cbiditst.c | 82 static const char* inverseBasic(UBiDi *pBiDi, const char *src, int32_t srcLen, [all...] |
spreptst.c | 295 unescapeData(const char* src, int32_t srcLen, 445 int32_t srcLen; 452 srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZE, &status); 457 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); 461 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); 478 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 480 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); 505 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 508 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); 515 if(destLen != srcLen){ [all...] |
/external/icu4c/test/cintltst/ |
spreptst.c | 295 unescapeData(const char* src, int32_t srcLen, 445 int32_t srcLen; 452 srcLen = unescapeData(mixed_prep_data[i], (int32_t)strlen(mixed_prep_data[i]), src, MAX_BUFFER_SIZE, &status); 457 destLen = nfs4_mixed_prepare(src, srcLen, NULL, 0, &parseError, &status); 461 destLen = nfs4_mixed_prepare(src, srcLen, dest, destLen, &parseError, &status); 478 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 480 nfs4_mixed_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, &parseError, &status); 505 int32_t srcLen = unescapeData(source, (int32_t)strlen(source), src, MAX_BUFFER_SIZE, &status); 508 int32_t destLen = nfs4_cs_prepare(src, srcLen, dest, MAX_BUFFER_SIZE, FALSE, &parseError, &status); 515 if(destLen != srcLen){ [all...] |