Searched defs:inputLength (Results 1 - 25 of 28) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/platform/text/
H A DQuotedPrintable.cpp42 static size_t lengthOfLineEndingAtIndex(const char* input, size_t inputLength, size_t index) argument
44 ASSERT_WITH_SECURITY_IMPLICATION(index < inputLength);
49 if ((index + 1) == inputLength || input[index + 1] != '\n')
62 void quotedPrintableEncode(const char* input, size_t inputLength, Vector<char>& out)
65 out.reserveCapacity(inputLength);
67 for (size_t i = 0; i < inputLength; ++i) {
68 bool isLastCharacter = (i == inputLength - 1);
76 if (!requiresEncoding && (currentCharacter == '\t' || currentCharacter == ' ') && (isLastCharacter || lengthOfLineEndingAtIndex(input, inputLength, i + 1)))
81 size_t lengthOfLineEnding = lengthOfLineEndingAtIndex(input, inputLength, i);
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
H A DWebSocketDeflaterTest.cpp44 const size_t inputLength = strlen(inputData); local
46 ASSERT_TRUE(deflater->addBytes(inputData, inputLength));
53 EXPECT_EQ(inputLength, inflater->size());
59 ASSERT_TRUE(deflater->addBytes(inputData, inputLength));
66 EXPECT_EQ(inputLength, inflater->size());
97 const size_t inputLength = strlen(inputData); local
102 ASSERT_TRUE(deflater->addBytes(inputData, inputLength));
108 EXPECT_EQ(inputLength, inflater->size());
H A DWebSocketDeflater.cpp76 static void setStreamParameter(z_stream* stream, const char* inputData, size_t inputLength, char* outputData, size_t outputLength) argument
79 stream->avail_in = inputLength;
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/chromium/
H A DUniscribeHelperTextRun.cpp75 int inputLength,
80 : UniscribeHelper(input, inputLength, isRtl, hfont,
73 UniscribeHelperTextRun( const wchar_t* input, int inputLength, bool isRtl, HFONT hfont, SCRIPT_CACHE* scriptCache, SCRIPT_FONTPROPERTIES* fontProperties) argument
H A DUniscribeHelper.cpp124 int inputLength,
131 , m_inputLength(inputLength)
123 UniscribeHelper(const UChar* input, int inputLength, bool isRtl, HFONT hfont, SCRIPT_CACHE* scriptCache, SCRIPT_FONTPROPERTIES* fontProperties, WORD spaceGlyph) argument
/external/chromium_org/third_party/skia/src/core/
H A DSkFlate.cpp57 size_t inputLength = src->getLength(); local
58 if (input == NULL || inputLength == 0) {
64 flateData.avail_in = inputLength;
/external/icu4c/samples/csdet/
H A Dcsdet.c29 int32_t inputLength, match, matchCount = 0; local
47 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file);
52 ucsdet_setText(csd, buffer, inputLength, &status);
/external/skia/src/core/
H A DSkFlate.cpp57 size_t inputLength = src->getLength(); local
58 if (input == NULL || inputLength == 0) {
64 flateData.avail_in = inputLength;
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DDOMTokenList.cpp199 unsigned inputLength = input.length(); local
201 output.reserveCapacity(inputLength);
205 while (position < inputLength) {
213 while (position < inputLength && isNotHTMLSpace(input[position]))
220 while (position < inputLength && isHTMLSpace(input[position]))
230 if (position < inputLength && !output.isEmpty())
/external/chromium_org/third_party/WebKit/Source/core/platform/network/
H A DParsedContentType.cpp59 unsigned inputLength = input.length(); local
63 if (tokenEnd >= inputLength)
66 while (tokenEnd < inputLength) {
77 unsigned inputLength = input.length(); local
81 if (quotedStringEnd >= inputLength)
84 if (input[quotedStringEnd++] != '"' || quotedStringEnd >= inputLength)
90 if (quotedStringEnd >= inputLength)
/external/chromium_org/third_party/skia/src/utils/
H A DSkSHA1.cpp33 void SkSHA1::update(const uint8_t* input, size_t inputLength) { argument
38 if (inputLength >= bufferAvailable) {
47 for (; inputIndex + 63 < inputLength; inputIndex += 64) {
56 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex);
58 this->byteCount += inputLength;
H A DSkMD5.cpp35 void SkMD5::update(const uint8_t* input, size_t inputLength) { argument
40 if (inputLength >= bufferAvailable) {
49 for (; inputIndex + 63 < inputLength; inputIndex += 64) {
58 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex);
60 this->byteCount += inputLength;
/external/skia/src/utils/
H A DSkSHA1.cpp33 void SkSHA1::update(const uint8_t* input, size_t inputLength) { argument
38 if (inputLength >= bufferAvailable) {
47 for (; inputIndex + 63 < inputLength; inputIndex += 64) {
56 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex);
58 this->byteCount += inputLength;
H A DSkMD5.cpp35 void SkMD5::update(const uint8_t* input, size_t inputLength) { argument
40 if (inputLength >= bufferAvailable) {
49 for (; inputIndex + 63 < inputLength; inputIndex += 64) {
58 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex);
60 this->byteCount += inputLength;
/external/chromium_org/third_party/icu/source/test/perf/unisetperf/
H A Dunisetperf.cpp59 int32_t inputLength; local
60 UPerfTest::getBuffer(inputLength, status);
61 if(U_SUCCESS(status) && inputLength>0) {
/external/chromium_org/third_party/icu/source/test/perf/utrie2perf/
H A Dutrie2perf.cpp55 int32_t inputLength; local
56 UPerfTest::getBuffer(inputLength, status);
57 if(U_SUCCESS(status) && inputLength>0) {
/external/icu4c/test/perf/unisetperf/
H A Dunisetperf.cpp59 int32_t inputLength; local
60 UPerfTest::getBuffer(inputLength, status);
61 if(U_SUCCESS(status) && inputLength>0) {
/external/icu4c/test/perf/utrie2perf/
H A Dutrie2perf.cpp55 int32_t inputLength; local
56 UPerfTest::getBuffer(inputLength, status);
57 if(U_SUCCESS(status) && inputLength>0) {
/external/chromium_org/third_party/icu/source/test/perf/utfperf/
H A Dutfperf.cpp86 int32_t inputLength; local
87 UPerfTest::getBuffer(inputLength, status);
124 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()),
145 int32_t inputLength; member in class:Command
175 pInLimit=input+inputLength;
210 if(inputLength!=outputLength) {
211 fprintf(stderr, "error: roundtrip failed, inputLength %d!=outputLength %d\n", inputLength, outputLength);
239 pInLimit=input+inputLength;
/external/icu4c/test/perf/utfperf/
H A Dutfperf.cpp86 int32_t inputLength; local
87 UPerfTest::getBuffer(inputLength, status);
124 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()),
145 int32_t inputLength; member in class:Command
175 pInLimit=input+inputLength;
210 if(inputLength!=outputLength) {
211 fprintf(stderr, "error: roundtrip failed, inputLength %d!=outputLength %d\n", inputLength, outputLength);
239 pInLimit=input+inputLength;
/external/chromium_org/third_party/icu/source/common/
H A Ddictbe.cpp547 size_t inputLength = rangeEnd - rangeStart; local
548 AutoBuffer<UChar, defaultInputLength> charString(inputLength);
554 utext_extract(text, rangeStart, rangeEnd, charString.elems(), inputLength, &status);
558 UnicodeString inputString(charString.elems(), inputLength);
564 AutoBuffer<int32_t, defaultInputLength> charPositions(inputLength + 1);
583 Normalizer normalizer(charString.elems(), inputLength, norm_mode);
/external/chromium_org/third_party/icu/source/i18n/
H A Duspoof.cpp387 static UChar *getSkeleton(const USpoofChecker *sc, uint32_t type, const UChar *s, int32_t inputLength, argument
395 requiredCapacity = uspoof_getSkeleton(sc, type, s, inputLength, dest, destCapacity, status);
403 uspoof_getSkeleton(sc, type, s, inputLength, buf, requiredCapacity, status);
/external/icu4c/common/
H A Ddictbe.cpp761 size_t inputLength = rangeEnd - rangeStart; local
763 AutoBuffer<UChar, defaultInputLength> charString(inputLength);
769 utext_extract(text, rangeStart, rangeEnd, charString.elems(), inputLength, &status);
774 UnicodeString inputString(charString.elems(), inputLength);
782 AutoBuffer<int32_t, defaultInputLength> charPositions(inputLength + 1);
802 Normalizer normalizer(charString.elems(), inputLength, norm_mode);
/external/chromium_org/third_party/WebKit/Source/weborigin/
H A DKURL.cpp102 virtual void ConvertFromUTF16(const url_parse::UTF16Char* input, int inputLength, url_canon::CanonOutput* output) argument
104 CString encoded = m_encoding->normalizeAndEncode(String(input, inputLength), WTF::URLEncodedEntitiesForUnencodables);
612 int inputLength = utf8.length(); local
613 if (buffer.length() < inputLength * 3)
614 buffer.Resize(inputLength * 3);
616 url_util::EncodeURIComponent(utf8.data(), inputLength, &buffer);
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dregextst.cpp4158 int32_t inputLength; local
4351 inputLength = matchString.extract(inputChars, inputCapacity, UTF8Converter.getAlias(), status);
4355 inputCapacity = inputLength + 1;
4359 utext_openUTF8(&inputText, inputChars, inputLength, &status);

Completed in 483 milliseconds

12