Lines Matching refs:appendedLength

4122 void CFStringAppendCharacters(CFMutableStringRef str, const UniChar *chars, CFIndex appendedLength) {
4125 __CFAssertIsNotNegative(appendedLength);
4127 CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, void, (NSMutableString *)str, appendCharacters:chars length:(NSUInteger)appendedLength);
4133 __CFStringChangeSize(str, CFRangeMake(strLength, 0), appendedLength, true);
4134 memmove((UniChar *)__CFStrContents(str) + strLength, chars, appendedLength * sizeof(UniChar));
4138 for (idx = 0; isASCII && idx < appendedLength; idx++) isASCII = (chars[idx] < 0x80);
4139 __CFStringChangeSize(str, CFRangeMake(strLength, 0), appendedLength, !isASCII);
4141 memmove((UniChar *)__CFStrContents(str) + strLength, chars, appendedLength * sizeof(UniChar));
4144 for (idx = 0; idx < appendedLength; idx++) contents[idx] = (uint8_t)chars[idx];
4150 void __CFStringAppendBytes(CFMutableStringRef str, const char *cStr, CFIndex appendedLength, CFStringEncoding encoding) {
4156 __CFAssertIsNotNegative(appendedLength);
4159 // appendedLength now denotes length in UniChars
4162 CFIndex idx, length = appendedLength / sizeof(UniChar);
4170 appendedLength = length;
4177 if (!__CFStringDecodeByteStream3((const uint8_t *)cStr, appendedLength, encoding, __CFStrIsUnicode(str), &vBuf, &usingPassedInMemory, 0)) {
4182 // If not ASCII, appendedLength now denotes length in UniChars
4183 appendedLength = vBuf.numChars;
4191 CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, void, (NSMutableString *)str, _cfAppendCString:(const unsigned char *)cStr length:(NSInteger)appendedLength);
4193 CF_OBJC_FUNCDISPATCHV(__kCFStringTypeID, void, (NSMutableString *)str, appendCharacters:(const unichar *)cStr length:(NSUInteger)appendedLength);
4200 __CFStringChangeSize(str, CFRangeMake(strLength, 0), appendedLength, appendedIsUnicode || __CFStrIsUnicode(str));
4205 memmove(contents + strLength, cStr, appendedLength * sizeof(UniChar));
4207 __CFStrConvertBytesToUnicode((const uint8_t *)cStr, contents + strLength, appendedLength);
4214 for (idx = 0; idx < appendedLength; idx++) contents[idx] = (uint8_t)chars[idx];
4217 memmove(contents + strLength + __CFStrSkipAnyLengthByte(str), cStr, appendedLength);