Home
last modified time | relevance | path

Searched refs:strLen (Results 1 - 25 of 60) sorted by relevance

123

/drivers/hdf_core/framework/utils/src/
H A Dhdf_cstring.c31 size_t strLen = strlen(str); in HdfCStringObtain() local
32 if (strLen > CSTRING_MAX) { in HdfCStringObtain()
35 size = sizeof(struct HdfCString) + strLen + 1; in HdfCStringObtain()
41 if (strncpy_s(instance->value, strLen + 1, str, strLen) != EOK) { in HdfCStringObtain()
46 instance->size = (int)strLen; in HdfCStringObtain()
H A Dhdf_sbuf_impl_raw.c399 int32_t strLen = 0; in SbufRawImplReadString() local
407 if (!SbufRawImplReadInt32(impl, &strLen) || strLen <= 0) { in SbufRawImplReadString()
410 alignSize = SbufRawImplGetAlignSize(strLen); in SbufRawImplReadString()
411 if (strLen > INT16_MAX || alignSize > SbufRawImplGetLeftReadSize(sbuf)) { in SbufRawImplReadString()
419 str[strLen - 1] = '\0'; in SbufRawImplReadString()
/drivers/peripheral/distributed_camera/hdi_service/src/utils/
H A Danonymous_string.cpp29 size_t strLen = value.length(); in GetAnonyString() local
30 if (strLen < INT32_MIN_ID_LENGTH) { in GetAnonyString()
34 if (strLen <= INT32_SHORT_ID_LENGTH) { in GetAnonyString()
37 res += value[strLen - 1]; in GetAnonyString()
41 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString()
/third_party/icu/icu4c/source/common/
H A Duset.cpp90 uset_addString(USet* set, const UChar* str, int32_t strLen) { in uset_addString() argument
91 // UnicodeString handles -1 for strLen in uset_addString()
92 UnicodeString s(strLen<0, str, strLen); in uset_addString()
97 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen) { in uset_addAllCodePoints() argument
98 // UnicodeString handles -1 for strLen in uset_addAllCodePoints()
99 UnicodeString s(str, strLen); in uset_addAllCodePoints()
114 uset_removeString(USet* set, const UChar* str, int32_t strLen) { in uset_removeString() argument
115 UnicodeString s(strLen==-1, str, strLen); in uset_removeString()
215 uset_containsString(const USet* set, const UChar* str, int32_t strLen) uset_containsString() argument
226 uset_containsAllCodePoints(const USet* set, const UChar *str, int32_t strLen) uset_containsAllCodePoints() argument
[all...]
/third_party/node/deps/icu-small/source/common/
H A Duset.cpp90 uset_addString(USet* set, const char16_t* str, int32_t strLen) { in uset_addString() argument
91 // UnicodeString handles -1 for strLen in uset_addString()
92 UnicodeString s(strLen<0, str, strLen); in uset_addString()
97 uset_addAllCodePoints(USet* set, const char16_t *str, int32_t strLen) { in uset_addAllCodePoints() argument
98 // UnicodeString handles -1 for strLen in uset_addAllCodePoints()
99 UnicodeString s(str, strLen); in uset_addAllCodePoints()
114 uset_removeString(USet* set, const char16_t* str, int32_t strLen) { in uset_removeString() argument
115 UnicodeString s(strLen==-1, str, strLen); in uset_removeString()
215 uset_containsString(const USet* set, const char16_t* str, int32_t strLen) uset_containsString() argument
226 uset_containsAllCodePoints(const USet* set, const char16_t *str, int32_t strLen) uset_containsAllCodePoints() argument
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Duset.cpp90 uset_addString(USet* set, const UChar* str, int32_t strLen) { in uset_addString() argument
91 // UnicodeString handles -1 for strLen in uset_addString()
92 UnicodeString s(strLen<0, str, strLen); in uset_addString()
97 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen) { in uset_addAllCodePoints() argument
98 // UnicodeString handles -1 for strLen in uset_addAllCodePoints()
99 UnicodeString s(str, strLen); in uset_addAllCodePoints()
114 uset_removeString(USet* set, const UChar* str, int32_t strLen) { in uset_removeString() argument
115 UnicodeString s(strLen==-1, str, strLen); in uset_removeString()
210 uset_containsString(const USet* set, const UChar* str, int32_t strLen) uset_containsString() argument
221 uset_containsAllCodePoints(const USet* set, const UChar *str, int32_t strLen) uset_containsAllCodePoints() argument
[all...]
/drivers/peripheral/wlan/wpa/interfaces/hdi_service/service_common/
H A Dwpa_hdi_util.c29 int ConvertMacToStr(const unsigned char *mac, int macSize, char *macStr, int strLen) in ConvertMacToStr() argument
31 if (mac == NULL || macStr == NULL || macSize != MAC_UINT_SIZE || strLen <= MAC_STRING_SIZE) { in ConvertMacToStr()
40 if (snprintf_s(macStr, strLen, strLen - 1, "%02x:%02x:%02x:%02x:%02x:%02x", mac[posZero], mac[posOne], mac[posTwo], in ConvertMacToStr()
H A Dwpa_hdi_util.h29 * @param strLen - mac string len, must bigger than 17
32 int ConvertMacToStr(const unsigned char *mac, int macSize, char *macStr, int strLen);
/third_party/skia/modules/canvaskit/
H A Dparticles.js32 var strLen = lengthBytesUTF8(key) + 1;
33 var strPtr = CanvasKit._malloc(strLen);
35 stringToUTF8(key, strPtr, strLen);
H A Dskottie.js46 var strLen = lengthBytesUTF8(key) + 1;
47 var strPtr = CanvasKit._malloc(strLen);
49 stringToUTF8(key, strPtr, strLen);
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
H A DPostScriptTable.java436 int strLen = this.data.readUByte(index); in parse()
437 byte[] nameBytes = new byte[strLen]; in parse()
438 this.data.readBytes(index + 1, nameBytes, 0, strLen); in parse()
444 index += 1 + strLen; in parse()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DReactorDebugInfo.cpp38 size_t strLen = str.size(); in endswith_lower() local
41 if(strLen < suffixLen) in endswith_lower()
46 return to_lower(str).substr(strLen - suffixLen) == to_lower(suffix); in endswith_lower()
/third_party/skia/experimental/skottiekit/
H A Dinterface.js91 var strLen = lengthBytesUTF8(key) + 1;
92 var strPtr = SkottieKit._malloc(strLen);
94 stringToUTF8(key, strPtr, strLen);
/third_party/icu/icu4c/source/common/unicode/
H A Duset.h574 * uset_containsString(set, str, strLen) will return true.
578 * @param strLen the length of the string or -1 if null terminated.
582 uset_addString(USet* set, const UChar* str, int32_t strLen);
590 * @param strLen the length of the string or -1 if null terminated.
594 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen);
621 * uset_containsString(set, str, strLen) will return false.
625 * @param strLen the length of the string or -1 if null terminated.
629 uset_removeString(USet* set, const UChar* str, int32_t strLen);
888 * @param strLen the length of the string or -1 if null terminated.
893 uset_containsString(const USet* set, const UChar* str, int32_t strLen);
[all...]
/third_party/node/deps/icu-small/source/common/unicode/
H A Duset.h604 * uset_containsString(set, str, strLen) will return true.
608 * @param strLen the length of the string or -1 if null terminated.
612 uset_addString(USet* set, const UChar* str, int32_t strLen);
620 * @param strLen the length of the string or -1 if null terminated.
624 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen);
651 * uset_containsString(set, str, strLen) will return false.
655 * @param strLen the length of the string or -1 if null terminated.
659 uset_removeString(USet* set, const UChar* str, int32_t strLen);
920 * @param strLen the length of the string or -1 if null terminated.
925 uset_containsString(const USet* set, const UChar* str, int32_t strLen);
[all...]
/third_party/skia/third_party/externals/icu/source/common/unicode/
H A Duset.h574 * uset_containsString(set, str, strLen) will return true.
578 * @param strLen the length of the string or -1 if null terminated.
582 uset_addString(USet* set, const UChar* str, int32_t strLen);
590 * @param strLen the length of the string or -1 if null terminated.
594 uset_addAllCodePoints(USet* set, const UChar *str, int32_t strLen);
621 * uset_containsString(set, str, strLen) will return false.
625 * @param strLen the length of the string or -1 if null terminated.
629 uset_removeString(USet* set, const UChar* str, int32_t strLen);
881 * @param strLen the length of the string or -1 if null terminated.
886 uset_containsString(const USet* set, const UChar* str, int32_t strLen);
[all...]
/third_party/icu/icu4c/source/io/
H A Dufmt_cmn.h30 #define MAX_UCHAR_BUFFER_NEEDED(strLen) ((strLen+1)*U16_MAX_LENGTH*sizeof(UChar))
/third_party/skia/third_party/externals/icu/source/io/
H A Dufmt_cmn.h30 #define MAX_UCHAR_BUFFER_NEEDED(strLen) ((strLen+1)*U16_MAX_LENGTH*sizeof(UChar))
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DStringMap.h131 explicit StringMapEntryStorage(size_t strLen) in StringMapEntryStorage() argument
132 : StringMapEntryBase(strLen), second() {} in StringMapEntryStorage()
134 StringMapEntryStorage(size_t strLen, InitTy &&... InitVals) in StringMapEntryStorage() argument
135 : StringMapEntryBase(strLen), second(std::forward<InitTy>(InitVals)...) {} in StringMapEntryStorage()
147 explicit StringMapEntryStorage(size_t strLen, NoneType none = None) in StringMapEntryStorage() argument
148 : StringMapEntryBase(strLen) {} in StringMapEntryStorage()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dwpa_debug.c543 int strLen = os_strlen(str); in anonymize_ssid() local
554 if (strLen < minHiddenSize) { in anonymize_ssid()
555 os_memset(s, hiddenChar, strLen); in anonymize_ssid()
559 if (strLen < minHiddenSize + headKeepSize + tailKeepSize) { in anonymize_ssid()
561 int hiddenSize = strLen - minHiddenSize + 1; in anonymize_ssid()
566 os_memset(s + headKeepSize, hiddenChar, strLen - headKeepSize - tailKeepSize); in anonymize_ssid()
589 int strLen = os_strlen(str); in anonymize_common() local
600 if (strLen < minHiddenSize) { in anonymize_common()
601 os_memset(temp, hiddenChar, strLen); in anonymize_common()
605 if (strLen < minHiddenSiz in anonymize_common()
[all...]
/third_party/skia/src/ports/
H A DSkOSFile_posix.cpp173 size_t strLen = strlen(str); in issuffixfor() local
175 return strLen >= suffixLen && in issuffixfor()
176 memcmp(suffix.c_str(), str + strLen - suffixLen, suffixLen) == 0; in issuffixfor()
/drivers/peripheral/distributed_audio/hdi_service/common/utils/src/
H A Ddaudio_utils.cpp42 size_t strLen = value.length(); in GetAnonyString() local
43 if (strLen < INT32_MIN_ID_LENGTH) { in GetAnonyString()
47 if (strLen <= INT32_SHORT_ID_LENGTH) { in GetAnonyString()
50 res += value[strLen - 1]; in GetAnonyString()
54 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH); in GetAnonyString()
/third_party/skia/src/core/
H A DSkString.cpp62 size_t strLen = strlen(string); in SkStrEndsWith() local
64 return strLen >= suffixLen && in SkStrEndsWith()
65 !strncmp(string + strLen - suffixLen, suffixStr, suffixLen); in SkStrEndsWith()
70 size_t strLen = strlen(string); in SkStrEndsWith() local
71 if (0 == strLen) { in SkStrEndsWith()
74 return (suffixChar == string[strLen-1]); in SkStrEndsWith()
/third_party/vk-gl-cts/execserver/
H A DxsProtocol.cpp135 int strLen = (int)strlen(value); in put() local
137 m_buf.resize(curPos + strLen+1); in put()
138 deMemcpy(&m_buf[curPos], &value[0], strLen+1); in put()
/third_party/skia/third_party/externals/angle2/src/common/
H A Dstring_utils.cpp25 const size_t strLen, in EndsWithSuffix()
29 return suffixLen <= strLen && strncmp(str + strLen - suffixLen, suffix, suffixLen) == 0; in EndsWithSuffix()
24 EndsWithSuffix(const char *str, const size_t strLen, const char *suffix, const size_t suffixLen) EndsWithSuffix() argument

Completed in 16 milliseconds

123