Home
last modified time | relevance | path

Searched refs:inputLength (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/text/
DQuotedPrintable.cpp42 static size_t lengthOfLineEndingAtIndex(const char* input, size_t inputLength, size_t index) in lengthOfLineEndingAtIndex() argument
44 ASSERT_WITH_SECURITY_IMPLICATION(index < inputLength); in lengthOfLineEndingAtIndex()
49 if ((index + 1) == inputLength || input[index + 1] != '\n') in lengthOfLineEndingAtIndex()
62 void quotedPrintableEncode(const char* input, size_t inputLength, Vector<char>& out) in quotedPrintableEncode() argument
65 out.reserveCapacity(inputLength); in quotedPrintableEncode()
67 for (size_t i = 0; i < inputLength; ++i) { in quotedPrintableEncode()
68 bool isLastCharacter = (i == inputLength - 1); in quotedPrintableEncode()
76 …rentCharacter == ' ') && (isLastCharacter || lengthOfLineEndingAtIndex(input, inputLength, i + 1))) in quotedPrintableEncode()
81 size_t lengthOfLineEnding = lengthOfLineEndingAtIndex(input, inputLength, i); in quotedPrintableEncode()
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
DWebSocketDeflaterTest.cpp43 const size_t inputLength = strlen(inputData); in TEST() local
45 ASSERT_TRUE(deflater->addBytes(inputData, inputLength)); in TEST()
52 EXPECT_EQ(inputLength, inflater->size()); in TEST()
58 ASSERT_TRUE(deflater->addBytes(inputData, inputLength)); in TEST()
65 EXPECT_EQ(inputLength, inflater->size()); in TEST()
96 const size_t inputLength = strlen(inputData); in TEST() local
101 ASSERT_TRUE(deflater->addBytes(inputData, inputLength)); in TEST()
107 EXPECT_EQ(inputLength, inflater->size()); in TEST()
DWebSocketDeflater.cpp76 static void setStreamParameter(z_stream* stream, const char* inputData, size_t inputLength, char* o… in setStreamParameter() argument
79 stream->avail_in = inputLength; in setStreamParameter()
/external/chromium_org/third_party/icu/source/test/perf/utfperf/
Dutfperf.cpp86 int32_t inputLength; in UtfPerformanceTest() local
87 UPerfTest::getBuffer(inputLength, status); in UtfPerformanceTest()
124 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()), in Command()
145 int32_t inputLength; member in Command
175 pInLimit=input+inputLength; in call()
210 if(inputLength!=outputLength) { in call()
211 …f(stderr, "error: roundtrip failed, inputLength %d!=outputLength %d\n", inputLength, outputLength); in call()
239 pInLimit=input+inputLength; in call()
/external/icu/icu4c/source/test/perf/utfperf/
Dutfperf.cpp86 int32_t inputLength; in UtfPerformanceTest() local
87 UPerfTest::getBuffer(inputLength, status); in UtfPerformanceTest()
124 input(testcase.getBuffer()), inputLength(testcase.getBufferLen()), in Command()
145 int32_t inputLength; member in Command
175 pInLimit=input+inputLength; in call()
210 if(inputLength!=outputLength) { in call()
211 …f(stderr, "error: roundtrip failed, inputLength %d!=outputLength %d\n", inputLength, outputLength); in call()
239 pInLimit=input+inputLength; in call()
/external/chromium_org/third_party/WebKit/Source/core/dom/
DDOMTokenList.cpp208 unsigned inputLength = input.length(); in removeTokens() local
210 output.reserveCapacity(inputLength); in removeTokens()
214 while (position < inputLength) { in removeTokens()
222 while (position < inputLength && isNotHTMLSpace<UChar>(input[position])) in removeTokens()
229 while (position < inputLength && isHTMLSpace<UChar>(input[position])) in removeTokens()
239 if (position < inputLength && !output.isEmpty()) in removeTokens()
/external/chromium_org/third_party/icu/source/samples/csdet/
Dcsdet.c29 int32_t inputLength, match, matchCount = 0; in main() local
47 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file); in main()
52 ucsdet_setText(csd, buffer, inputLength, &status); in main()
/external/icu/icu4c/source/samples/csdet/
Dcsdet.c29 int32_t inputLength, match, matchCount = 0; in main() local
47 inputLength = (int32_t) fread(buffer, 1, BUFFER_SIZE, file); in main()
52 ucsdet_setText(csd, buffer, inputLength, &status); in main()
/external/chromium_org/third_party/skia/src/core/
DSkFlate.cpp57 size_t inputLength = src->getLength(); in doFlate() local
58 if (input == NULL || inputLength == 0) { in doFlate()
64 flateData.avail_in = SkToUInt(inputLength); in doFlate()
/external/chromium_org/third_party/WebKit/Source/platform/network/
DParsedContentType.cpp54 unsigned inputLength = input.length(); in parseParameterPart() local
58 if (tokenEnd >= inputLength) in parseParameterPart()
64 while (tokenEnd < inputLength) { in parseParameterPart()
/external/skia/src/core/
DSkFlate.cpp57 size_t inputLength = src->getLength(); in doFlate() local
58 if (input == NULL || inputLength == 0) { in doFlate()
64 flateData.avail_in = SkToUInt(inputLength); in doFlate()
/external/chromium_org/third_party/skia/src/utils/
DSkMD5.cpp35 void SkMD5::update(const uint8_t* input, size_t inputLength) { in update() argument
40 if (inputLength >= bufferAvailable) { in update()
49 for (; inputIndex + 63 < inputLength; inputIndex += 64) { in update()
58 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex); in update()
60 this->byteCount += inputLength; in update()
DSkSHA1.cpp33 void SkSHA1::update(const uint8_t* input, size_t inputLength) { in update() argument
38 if (inputLength >= bufferAvailable) { in update()
47 for (; inputIndex + 63 < inputLength; inputIndex += 64) { in update()
56 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex); in update()
58 this->byteCount += inputLength; in update()
/external/skia/src/utils/
DSkMD5.cpp35 void SkMD5::update(const uint8_t* input, size_t inputLength) { in update() argument
40 if (inputLength >= bufferAvailable) { in update()
49 for (; inputIndex + 63 < inputLength; inputIndex += 64) { in update()
58 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex); in update()
60 this->byteCount += inputLength; in update()
DSkSHA1.cpp33 void SkSHA1::update(const uint8_t* input, size_t inputLength) { in update() argument
38 if (inputLength >= bufferAvailable) { in update()
47 for (; inputIndex + 63 < inputLength; inputIndex += 64) { in update()
56 memcpy(&this->buffer[bufferIndex], &input[inputIndex], inputLength - inputIndex); in update()
58 this->byteCount += inputLength; in update()
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/host/chrome/
Dexpanding_braille_translator.js292 function(inputLength, callback) { argument
295 textToBraille = new Array(inputLength);
296 for (var i = 0; i < inputLength; ++i) {
/external/chromium_org/third_party/icu/source/test/perf/utrie2perf/
Dutrie2perf.cpp55 int32_t inputLength; in UTrie2PerfTest() local
56 UPerfTest::getBuffer(inputLength, status); in UTrie2PerfTest()
57 if(U_SUCCESS(status) && inputLength>0) { in UTrie2PerfTest()
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp55 int32_t inputLength; in UTrie2PerfTest() local
56 UPerfTest::getBuffer(inputLength, status); in UTrie2PerfTest()
57 if(U_SUCCESS(status) && inputLength>0) { in UTrie2PerfTest()
/external/chromium_org/third_party/WebKit/Source/platform/weborigin/
DKURL.cpp104 …virtual void ConvertFromUTF16(const url::UTF16Char* input, int inputLength, url::CanonOutput* outp… in ConvertFromUTF16() argument
106 …CString encoded = m_encoding->normalizeAndEncode(String(input, inputLength), WTF::URLEncodedEntiti… in ConvertFromUTF16()
681 int inputLength = utf8.length(); in encodeWithURLEscapeSequences() local
682 if (buffer.length() < inputLength * 3) in encodeWithURLEscapeSequences()
683 buffer.Resize(inputLength * 3); in encodeWithURLEscapeSequences()
685 url::EncodeURIComponent(utf8.data(), inputLength, &buffer); in encodeWithURLEscapeSequences()
/external/chromium_org/third_party/icu/source/common/
Ddictbe.cpp964 size_t inputLength = rangeEnd - rangeStart; in divideUpDictionaryRange() local
966 AutoBuffer<UChar, defaultInputLength> charString(inputLength); in divideUpDictionaryRange()
972 utext_extract(text, rangeStart, rangeEnd, charString.elems(), inputLength, &status); in divideUpDictionaryRange()
977 UnicodeString inputString(charString.elems(), inputLength); in divideUpDictionaryRange()
985 AutoBuffer<int32_t, defaultInputLength> charPositions(inputLength + 1); in divideUpDictionaryRange()
1005 Normalizer normalizer(charString.elems(), inputLength, norm_mode); in divideUpDictionaryRange()
/external/icu/icu4c/source/common/
Ddictbe.cpp967 size_t inputLength = rangeEnd - rangeStart; in divideUpDictionaryRange() local
969 AutoBuffer<UChar, defaultInputLength> charString(inputLength); in divideUpDictionaryRange()
975 utext_extract(text, rangeStart, rangeEnd, charString.elems(), inputLength, &status); in divideUpDictionaryRange()
980 UnicodeString inputString(charString.elems(), inputLength); in divideUpDictionaryRange()
988 AutoBuffer<int32_t, defaultInputLength> charPositions(inputLength + 1); in divideUpDictionaryRange()
1008 Normalizer normalizer(charString.elems(), inputLength, norm_mode); in divideUpDictionaryRange()
/external/chromium_org/third_party/icu/source/test/perf/unisetperf/
Dunisetperf.cpp59 int32_t inputLength; in UnicodeSetPerformanceTest() local
60 UPerfTest::getBuffer(inputLength, status); in UnicodeSetPerformanceTest()
61 if(U_SUCCESS(status) && inputLength>0) { in UnicodeSetPerformanceTest()
/external/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp59 int32_t inputLength; in UnicodeSetPerformanceTest() local
60 UPerfTest::getBuffer(inputLength, status); in UnicodeSetPerformanceTest()
61 if(U_SUCCESS(status) && inputLength>0) { in UnicodeSetPerformanceTest()
/external/icu/icu4c/source/i18n/
Ddecimfmt.cpp3170 int32_t inputLength = input.length();
3206 while (pos < inputLength) {
3245 while (pos < inputLength) {
3284 if (i >= affixLength || pos >= inputLength) {
/external/chromium_org/third_party/icu/source/i18n/
Ddecimfmt.cpp3081 int32_t inputLength = input.length(); in compareSimpleAffix() local
3117 while (pos < inputLength) { in compareSimpleAffix()
3156 while (pos < inputLength) { in compareSimpleAffix()
3195 if (i >= affixLength || pos >= inputLength) { in compareSimpleAffix()

12