Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: core/fxcrt/include/fx_string.h

Issue 2095763003: Improve hint table validation checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FXCRT_INCLUDE_FX_STRING_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_STRING_H_
8 #define CORE_FXCRT_INCLUDE_FX_STRING_H_ 8 #define CORE_FXCRT_INCLUDE_FX_STRING_H_
9 9
10 #include <stdint.h> // For intptr_t. 10 #include <stdint.h> // For intptr_t.
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); 430 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength());
431 } 431 }
432 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString& wsStr) { 432 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString& wsStr) {
433 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); 433 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength());
434 } 434 }
435 435
436 FX_FLOAT FX_atof(const CFX_ByteStringC& str); 436 FX_FLOAT FX_atof(const CFX_ByteStringC& str);
437 inline FX_FLOAT FX_atof(const CFX_WideStringC& wsStr) { 437 inline FX_FLOAT FX_atof(const CFX_WideStringC& wsStr) {
438 return FX_atof(FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()).c_str()); 438 return FX_atof(FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()).c_str());
439 } 439 }
440 void FX_atonum(const CFX_ByteStringC& str, FX_BOOL& bInteger, void* pData); 440 bool FX_atonum(const CFX_ByteStringC& str, void* pData);
441 FX_STRSIZE FX_ftoa(FX_FLOAT f, FX_CHAR* buf); 441 FX_STRSIZE FX_ftoa(FX_FLOAT f, FX_CHAR* buf);
442 442
443 #endif // CORE_FXCRT_INCLUDE_FX_STRING_H_ 443 #endif // CORE_FXCRT_INCLUDE_FX_STRING_H_
OLDNEW
« core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp ('K') | « core/fxcrt/fx_basic_util.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698