Lines Matching refs:arr
73 UChar *arr = nullptr; in Decode() local
75 arr = new (std::nothrow) UChar[limit + 1]; in Decode()
76 if (arr == nullptr) { in Decode()
80 if (memset_s(arr, len + sizeof(UChar), 0, len + sizeof(UChar)) != EOK) { in Decode()
82 FreedMemory(arr); in Decode()
89 UChar *target = arr; in Decode()
90 size_t tarStartPos = reinterpret_cast<uintptr_t>(arr); in Decode()
99 SetBomFlag(arr, codeFlag, decArr, resultLength, omitInitialBom); in Decode()
100 UChar *arrDat = arr; in Decode()
102 arrDat = &arr[2]; // 2: Obtains the 2 value of the array. in Decode()
107 FreedMemory(arr); in Decode()
130 UChar *arr = nullptr; in DecodeToString() local
132 arr = new (std::nothrow) UChar[limit + 1]{0}; in DecodeToString()
133 if (arr == nullptr) { in DecodeToString()
141 UChar *target = arr; in DecodeToString()
145 FreedMemory(arr); in DecodeToString()
150 size_t resultLen = target - arr; in DecodeToString()
152 SetIgnoreBOM(arr, resultLen, omitInitialBom); in DecodeToString()
153 UChar *arrDat = arr; in DecodeToString()
155 arrDat = &arr[1]; in DecodeToString()
160 FreedMemory(arr); in DecodeToString()
229 … void TextDecoder::SetBomFlag(const UChar *arr, const UErrorCode codeFlag, const DecodeArr decArr, in SetBomFlag() argument
232 if (arr == nullptr) { in SetBomFlag()
239 bomFlag = (arr[0] == 0xFEFF) ? true : false; in SetBomFlag()
246 void TextDecoder::SetIgnoreBOM(const UChar *arr, size_t resultLen, bool &bomFlag) in SetIgnoreBOM() argument
258 bomFlag = (arr[0] == 0xFEFF) ? true : false; in SetIgnoreBOM()