| OLD | NEW |
| 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 _FX_STRING_H_ | 7 #ifndef _FX_STRING_H_ |
| 8 #define _FX_STRING_H_ | 8 #define _FX_STRING_H_ |
| 9 |
| 10 #include "fx_memory.h" |
| 11 |
| 9 class CFX_ByteStringC; | 12 class CFX_ByteStringC; |
| 10 class CFX_ByteString; | 13 class CFX_ByteString; |
| 11 class CFX_WideStringC; | 14 class CFX_WideStringC; |
| 12 class CFX_WideString; | 15 class CFX_WideString; |
| 13 struct CFX_CharMap; | 16 struct CFX_CharMap; |
| 14 class CFX_BinaryBuf; | 17 class CFX_BinaryBuf; |
| 15 typedef int FX_STRSIZE; | 18 typedef int FX_STRSIZE; |
| 16 class CFX_ByteStringL; | 19 class CFX_ByteStringL; |
| 17 class CFX_WideStringL; | 20 class CFX_WideStringL; |
| 18 | 21 |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 CFX_ByteString FX_UTF8Encode(FX_LPCWSTR pwsStr, FX_STRSIZE len); | 867 CFX_ByteString FX_UTF8Encode(FX_LPCWSTR pwsStr, FX_STRSIZE len); |
| 865 inline CFX_ByteString FX_UTF8Encode(FX_WSTR wsStr) | 868 inline CFX_ByteString FX_UTF8Encode(FX_WSTR wsStr) |
| 866 { | 869 { |
| 867 return FX_UTF8Encode(wsStr.GetPtr(), wsStr.GetLength()); | 870 return FX_UTF8Encode(wsStr.GetPtr(), wsStr.GetLength()); |
| 868 } | 871 } |
| 869 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString &wsStr) | 872 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString &wsStr) |
| 870 { | 873 { |
| 871 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); | 874 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); |
| 872 } | 875 } |
| 873 #endif | 876 #endif |
| OLD | NEW |