/external/pdfium/core/fpdfapi/edit/ |
D | cpdf_pagecontentgenerator_unittest.cpp | 142 ASSERT_TRUE(pathString.GetLength() > 91); in TEST_F() 144 &generator, "ExtGState", pathString.Mid(48, pathString.GetLength() - 91)); in TEST_F() 160 EXPECT_EQ(pathString.GetLength() + 7, pathString2.GetLength()); in TEST_F() 161 EXPECT_EQ(pathString.Mid(48, pathString.GetLength() - 76), in TEST_F() 162 pathString2.Mid(55, pathString2.GetLength() - 83)); in TEST_F() 200 textString.Right(textString.GetLength() - secondResourceAt.value()); in TEST_F() 207 EXPECT_LT(compareString1.GetLength() + compareString2.GetLength() + in TEST_F() 208 compareString3.GetLength(), in TEST_F() 209 textString.GetLength()); in TEST_F() 210 EXPECT_EQ(compareString1, firstString.Left(compareString1.GetLength())); in TEST_F() [all …]
|
/external/pdfium/core/fxcrt/ |
D | bytestring.cpp | 76 int src_len = wstr.GetLength(); in GetByteString() 179 stringSrc.GetLength())); in ByteString() 183 FX_SAFE_SIZE_T nSafeLen = str1.GetLength(); in ByteString() 184 nSafeLen += str2.GetLength(); in ByteString() 191 m_pData->CopyContents(str1.unterminated_c_str(), str1.GetLength()); in ByteString() 192 m_pData->CopyContentsAt(str1.GetLength(), str2.unterminated_c_str(), in ByteString() 193 str2.GetLength()); in ByteString() 199 nSafeLen += item.GetLength(); in ByteString() 210 item.GetLength()); in ByteString() 211 nOffset += item.GetLength(); in ByteString() [all …]
|
D | widestring.cpp | 295 int src_len = bstr.GetLength(); in GetWideString() 379 stringSrc.GetLength())); in WideString() 384 FX_SAFE_SIZE_T nSafeLen = str1.GetLength(); in WideString() 385 nSafeLen += str2.GetLength(); in WideString() 392 m_pData->CopyContents(str1.unterminated_c_str(), str1.GetLength()); in WideString() 393 m_pData->CopyContentsAt(str1.GetLength(), str2.unterminated_c_str(), in WideString() 394 str2.GetLength()); in WideString() 400 nSafeLen += item.GetLength(); in WideString() 411 item.GetLength()); in WideString() 412 nOffset += item.GetLength(); in WideString() [all …]
|
D | bytestring.h | 83 return ByteStringView(raw_str(), GetLength()); in AsStringView() 100 size_t GetLength() const { return m_pData ? m_pData->m_nDataLength : 0; } in GetLength() function 104 bool IsEmpty() const { return !GetLength(); } in IsEmpty() 105 bool IsValidIndex(size_t index) const { return index < GetLength(); } in IsValidIndex() 106 bool IsValidLength(size_t length) const { return length <= GetLength(); } in IsValidLength() 137 CharType First() const { return GetLength() ? (*this)[0] : 0; } in First() 138 CharType Last() const { return GetLength() ? (*this)[GetLength() - 1] : 0; } in Last() 144 size_t InsertAtBack(char ch) { return Insert(GetLength(), ch); } in InsertAtBack()
|
D | string_view_template.h | 131 size_t GetLength() const { return m_Length; } in GetLength() function 133 bool IsValidIndex(size_t index) const { return index < GetLength(); } in IsValidIndex() 134 bool IsValidLength(size_t length) const { return length <= GetLength(); } in IsValidLength() 141 UnsignedType First() const { return GetLength() ? (*this)[0] : 0; } in First() 144 return GetLength() ? (*this)[GetLength() - 1] : 0; in Last() 186 return Mid(GetLength() - count, count); in Right() 193 size_t pos = GetLength(); in TrimmedRight()
|
D | widestring.h | 79 return WideStringView(c_str(), GetLength()); in AsStringView() 98 size_t GetLength() const { return m_pData ? m_pData->m_nDataLength : 0; } in GetLength() function 102 bool IsEmpty() const { return !GetLength(); } in IsEmpty() 103 bool IsValidIndex(size_t index) const { return index < GetLength(); } in IsValidIndex() 104 bool IsValidLength(size_t length) const { return length <= GetLength(); } in IsValidLength() 132 CharType First() const { return GetLength() ? (*this)[0] : 0; } in First() 133 CharType Last() const { return GetLength() ? (*this)[GetLength() - 1] : 0; } in Last() 147 size_t InsertAtBack(wchar_t ch) { return Insert(GetLength(), ch); } in InsertAtBack()
|
D | cfx_seekablestreamproxy.cpp | 197 pdfium::clamp(m_iPosition, static_cast<FX_FILESIZE>(0), GetLength()); in Seek() 213 std::min(iBufferSize, static_cast<size_t>(GetLength() - m_iPosition)); in ReadData() 249 std::min(iMaxLength, static_cast<size_t>(GetLength() - pos)); in ReadString() 272 if (!m_IsWriteStream || str.GetLength() == 0 || in WriteString() 277 str.GetLength() * sizeof(wchar_t))) { in WriteString() 282 new_pos += str.GetLength() * sizeof(wchar_t); in WriteString() 285 pdfium::clamp(m_iPosition, static_cast<FX_FILESIZE>(0), GetLength()); in WriteString()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_security_handler.cpp | 38 passcode[i] = i < password.GetLength() in CalcEncryptKey() 40 : defpasscode[i - password.GetLength()]; in CalcEncryptKey() 46 CRYPT_MD5Update(&md5, (uint8_t*)okey.c_str(), okey.GetLength()); in CalcEncryptKey() 50 CRYPT_MD5Update(&md5, (uint8_t*)fileId.c_str(), fileId.GetLength()); in CalcEncryptKey() 235 CRYPT_SHA256Update(&sha, password.raw_str(), password.GetLength()); in Revision6_Hash() 255 int iRoundSize = password.GetLength() + iBlockSize; in Revision6_Hash() 265 password.raw_str() + password.GetLength()); in Revision6_Hash() 314 if (okey.GetLength() < 48) in AES256_CheckPassword() 318 if (ukey.GetLength() < 48) in AES256_CheckPassword() 329 CRYPT_SHA256Update(&sha, password.raw_str(), password.GetLength()); in AES256_CheckPassword() [all …]
|
D | cpdf_syntax_parser.cpp | 375 if (word.GetLength() == 0) in GetObjectBodyInternal() 431 FX_FILESIZE SavedPos = m_Pos - key.GetLength(); in GetObjectBodyInternal() 458 ByteString keyNoSlash(key.raw_str() + 1, key.GetLength() - 1); in GetObjectBodyInternal() 548 memset(m_WordBuffer, 0, kEndStreamStr.GetLength() + 1); in ReadStream() 554 kEndStreamStr.GetLength()) == 0) { in ReadStream() 572 if (IsWholeWord(m_Pos - kEndStreamStr.GetLength(), m_FileLen, in ReadStream() 574 endStreamOffset = m_Pos - streamStartPos - kEndStreamStr.GetLength(); in ReadStream() 589 if (IsWholeWord(m_Pos - kEndObjStr.GetLength(), m_FileLen, kEndObjStr, in ReadStream() 591 endObjOffset = m_Pos - streamStartPos - kEndObjStr.GetLength(); in ReadStream() 642 memset(m_WordBuffer, 0, kEndObjStr.GetLength() + 1); in ReadStream() [all …]
|
/external/pdfium/xfa/fgas/crt/ |
D | cfgas_formatstring.cpp | 159 int32_t iLen = wsOutput.GetLength(); in GetLiteralTextReverse() 180 int32_t iLenf = wsNum.GetLength(); in GetNumericDotIndex() 182 int32_t iLenDot = wsDotSymbol.GetLength(); in GetNumericDotIndex() 234 int32_t len = wsDate.GetLength(); in ParseLocaleDate() 236 int32_t lenf = wsDatePattern.GetLength(); in ParseLocaleDate() 241 int32_t iLiteralLen = wsLiteral.GetLength(); in ParseLocaleDate() 280 if (!wcsncmp(wsMonthName.c_str(), str + *cc, wsMonthName.GetLength())) { in ParseLocaleDate() 281 *cc += wsMonthName.GetLength(); in ParseLocaleDate() 291 if (!wcsncmp(wsDayName.c_str(), str + *cc, wsDayName.GetLength())) { in ParseLocaleDate() 292 *cc += wsDayName.GetLength(); in ParseLocaleDate() [all …]
|
/external/pdfium/fxbarcode/datamatrix/ |
D | BC_C40Encoder.cpp | 61 int32_t unwritten = (buffer.GetLength() / 3) * 2; in Encode() 69 if ((buffer.GetLength() % 3) == 2) { in Encode() 78 while ((buffer.GetLength() % 3) == 1 && in Encode() 88 int32_t count = buffer.GetLength(); in Encode() 108 int32_t unwritten = (buffer.GetLength() / 3) * 2; in handleEOD() 109 int32_t rest = buffer.GetLength() % 3; in handleEOD() 118 while (buffer.GetLength() >= 3) { in handleEOD() 125 while (buffer.GetLength() >= 3) { in handleEOD() 133 while (buffer.GetLength() >= 3) { in handleEOD() 195 int32_t count = buffer->GetLength(); in BacktrackOneCharacter()
|
/external/pdfium/core/fpdfapi/font/ |
D | cpdf_tounicodemap.cpp | 26 uint32_t buf_len = m_MultiCharBuf.GetLength(); in Lookup() 56 int len = str.GetLength(); in StringToCode() 75 int len = str.GetLength(); in StringDataAdd() 93 int len = str.GetLength(); in StringToWideString() 120 FX_SAFE_UINT32 uni = m_MultiCharBuf.GetLength(); in GetUnicode() 144 int len = destcode.GetLength(); in Load() 152 m_MultiCharBuf.AppendChar(destcode.GetLength()); in Load() 175 int len = destcode.GetLength(); in Load() 183 m_MultiCharBuf.AppendChar(destcode.GetLength()); in Load() 190 int len = destcode.GetLength(); in Load() [all …]
|
D | cpdf_cmapparser.cpp | 35 if (word.GetLength() <= 2) in CMap_GetString() 37 return word.Right(word.GetLength() - 2); in CMap_GetString() 123 if (word.GetLength() == 0 || word[0] != '<') { in ParseWord() 143 for (size_t i = 1; i < word.GetLength() && std::isxdigit(word[i]); ++i) { in GetCode() 151 for (size_t i = 0; i < word.GetLength() && std::isdigit(word[i]); ++i) { in GetCode() 162 if (first.GetLength() == 0 || first[0] != '<') in GetCodeRange() 166 for (i = 1; i < first.GetLength(); ++i) { in GetCodeRange() 182 size_t size = second.GetLength(); in GetCodeRange()
|
/external/pdfium/core/fpdftext/ |
D | cpdf_textpagefind.cpp | 97 size_t len = findwhatStr.GetLength(); in FindFirst() 106 m_findPreStart = m_strText.GetLength() - 1; in FindFirst() 139 size_t strLen = m_strText.GetLength(); in FindNext() 169 size_t endIndex = nResultPos.value() + csWord.GetLength() - 1; in FindNext() 177 int lastChar = lastWord[lastWord.GetLength() - 1]; in FindNext() 210 nStartPos = m_resStart + m_csFindWhatArray[1].GetLength(); in FindNext() 212 nStartPos = m_resStart + m_csFindWhatArray[0].GetLength(); in FindNext() 215 m_resEnd = nResultPos.value() + m_csFindWhatArray.back().GetLength() - 1; in FindNext() 293 while (pos < word->GetLength()) { in ExtractFindWhat() 304 if (pos == word->GetLength() - 1) { in ExtractFindWhat() [all …]
|
D | cpdf_linkextract.cpp | 38 size_t len = str.GetLength(); in FindWebLinkEnding() 155 if (strBeCheck.GetLength() > 5) { in ParseLink() 156 while (strBeCheck.GetLength() > 0) { in ParseLink() 157 wchar_t ch = strBeCheck[strBeCheck.GetLength() - 1]; in ParseLink() 159 strBeCheck = strBeCheck.Left(strBeCheck.GetLength() - 1); in ParseLink() 199 size_t len = str.GetLength(); in CheckWebLink() 210 str.GetLength() - 1); in CheckWebLink() 226 str.GetLength() - 1); in CheckWebLink() 241 if (!aPos.has_value() || aPos.value() == 0 || aPos == str->GetLength() - 1) in CheckMailLink() 259 *str = str->Right(str->GetLength() - removed_len); in CheckMailLink() [all …]
|
/external/webrtc/webrtc/base/ |
D | cryptstring.h | 27 virtual size_t GetLength() const = 0; 37 size_t GetLength() const override; 47 size_t GetLength() const { return impl_->GetLength(); } in GetLength() function 92 size_t len = password->GetLength(); in Append() 98 size_t GetLength() { in GetLength() function 157 size_t GetLength() const override;
|
/external/pdfium/fpdfsdk/fpdfxfa/ |
D | cpdfxfa_docenvironment.cpp | 391 wsTitle = wsTitle.FromLocal(csTitle.GetBuffer(csTitle.GetLength())); in GetTitle() 392 csTitle.ReleaseBuffer(csTitle.GetLength()); in GetTitle() 429 int len = bs.GetLength(); in ExportData() 441 content.GetLength()); in ExportData() 491 bs.GetLength() / sizeof(unsigned short)); in ExportData() 497 content.GetLength()); in ExportData() 648 int len = bs.GetLength(); in OnBeforeNotifySubmit() 706 int len = bs.GetLength(); in OpenLinkedFile() 850 tmp = srcURL.Right(csURL.GetLength() - 7); in MailToInfo() 853 tmp = tmp.Right(tmp.GetLength() - 7); in MailToInfo() [all …]
|
/external/pdfium/fxbarcode/oned/ |
D | BC_OnedCode128Writer.cpp | 99 for (size_t i = 0; i < contents.GetLength(); i++) { in FilterContents() 137 if (contents.GetLength() < 1 || contents.GetLength() > 80) in EncodeImpl() 150 m_iContentLen = contents.GetLength() + 3; in EncodeImpl() 176 for (size_t position = 0; position < contents.GetLength(); position++) { in Encode128B() 191 while (position < contents.GetLength()) { in Encode128C() 199 if (position < contents.GetLength() && std::isdigit(contents[position])) in Encode128C()
|
D | BC_OnedUPCAWriter.cpp | 46 for (size_t i = 0; i < contents.GetLength(); ++i) { in CheckContentValidity() 56 for (size_t i = 0; i < contents.GetLength(); i++) { in FilterContents() 73 for (size_t i = contents.GetLength(); i > 0; i--) { in CalcChecksum() 116 int32_t iLen = str.GetLength(); in ShowChars() 122 iLen = tempStr.GetLength(); in ShowChars() 169 iLen = tempStr.GetLength(); in ShowChars() 183 iLen = tempStr.GetLength(); in ShowChars() 199 iLen = tempStr.GetLength(); in ShowChars()
|
D | BC_OnedCode39Writer.cpp | 61 for (size_t i = 0; i < contents.GetLength(); i++) { in CheckContentValidity() 76 for (size_t i = 0; i < contents.GetLength(); i++) { in FilterContents() 78 if (ch == L'*' && (i == 0 || i == contents.GetLength() - 1)) { in FilterContents() 98 for (size_t i = 0; i < contents.GetLength(); i++) { in RenderTextContents() 100 if (ch == L'*' && (i == 0 || i == contents.GetLength() - 1)) { in RenderTextContents() 149 if (contents.GetLength() > 80) in CalcCheckSum() 180 m_iContentLen = encodedContents.GetLength(); in EncodeImpl()
|
D | BC_OnedCodaBarWriter.cpp | 113 for (size_t index = 0; index < contents.GetLength(); index++) { in FilterContents() 140 m_iContentLen = data.GetLength(); in EncodeImpl() 141 uint8_t* result = FX_Alloc2D(uint8_t, m_iWideNarrRatio * 7, data.GetLength()); in EncodeImpl() 144 for (size_t index = 0; index < data.GetLength(); index++) { in EncodeImpl() 186 if (index < data.GetLength() - 1) { in EncodeImpl()
|
/external/pdfium/fxbarcode/qrcode/ |
D | BC_QRCoderEncoder.cpp | 67 int32_t length = content.GetLength(); in AppendNumericBytes() 90 int32_t length = content.GetLength(); in AppendAlphaNumericBytes() 116 int32_t length = content.GetLength(); in AppendGBKBytes() 137 for (size_t i = 0; i < content.GetLength(); i++) in Append8BitBytes() 384 element1.second.GetLength() < static_cast<size_t>(tmp)) { in MergeString() 403 element1.second.GetLength() < static_cast<size_t>(tmp)) { in MergeString() 414 element1.second.GetLength() < static_cast<size_t>(tmp)) { in MergeString() 429 while (index < content.GetLength()) { in SplitString() 437 if (index >= content.GetLength()) in SplitString() 442 index < content.GetLength()) { in SplitString() [all …]
|
/external/pdfium/core/fxcrt/css/ |
D | cfx_csssyntaxparser.cpp | 49 m_TextData.GetLength() > 0) { in DoSyntaxParse() 98 if (m_TextData.GetLength() > 0) { in DoSyntaxParse() 160 if (wch == '/' && m_TextData.GetLength() > 0 && in DoSyntaxParse() 161 m_TextData.GetBuffer()[m_TextData.GetLength() - 1] == '*') { in DoSyntaxParse() 192 if (m_TextData.GetLength() > 0 || wch > ' ') { in AppendChar() 211 int32_t iLength = m_TextData.GetLength(); in SwitchToComment()
|
/external/pdfium/fxjs/ |
D | cjs_publicmethods.cpp | 113 if (end >= 0 && static_cast<size_t>(end) < value.GetLength()) in CalcMergedString() 114 postfix = value.Right(value.GetLength() - static_cast<size_t>(end)); in CalcMergedString() 353 for (size_t i = nStart; i < str.GetLength(); ++i) { in ParseStringInteger() 375 swRet.Reserve(str.GetLength()); in ParseStringString() 376 for (size_t i = nStart; i < str.GetLength(); ++i) { in ParseStringString() 384 *pSkip = swRet.GetLength(); in ParseStringString() 402 size_t nLen = value.GetLength(); in ParseNormalDate() 490 while (i < format.GetLength()) { in MakeRegularDate() 515 size_t remaining = format.GetLength() - i - 1; in MakeRegularDate() 554 bPm = (j < value.GetLength() && value[j] == 'p'); in MakeRegularDate() [all …]
|
D | cfxjse_formcalc_context.cpp | 342 int32_t nLength = wsPattern.GetLength(); in AlternateDateTimeSymbols() 407 int32_t iLength = wsPattern.GetLength(); in PatternStringType() 540 int32_t len = wsValue.GetLength(); in ByteStringToDouble() 621 if (args.GetLength() != 1) { in Abs() 643 int32_t argc = args.GetLength(); in Avg() 710 if (args.GetLength() != 1) { in Ceil() 731 for (int32_t i = 0; i < args.GetLength(); i++) { in Count() 782 if (args.GetLength() != 1) { in Floor() 804 for (int32_t i = 0; i < args.GetLength(); i++) { in Max() 878 for (int32_t i = 0; i < args.GetLength(); i++) { in Min() [all …]
|