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

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

Issue 1862953004: Make CFX_WideString::FromLocal() take a CFX_ByteStringC arg (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use GetConstStringBy(). Created 4 years, 8 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
« no previous file with comments | « core/fxcrt/fx_extension.cpp ('k') | core/fxcrt/include/fx_string.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASIC_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_BASIC_H_
8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ 8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 static const size_t kBufSize = 32768; 179 static const size_t kBufSize = 32768;
180 180
181 size_t m_Length; 181 size_t m_Length;
182 std::unique_ptr<uint8_t, FxFreeDeleter> m_pBuffer; 182 std::unique_ptr<uint8_t, FxFreeDeleter> m_pBuffer;
183 IFX_StreamWrite* m_pFile; 183 IFX_StreamWrite* m_pFile;
184 }; 184 };
185 185
186 class CFX_CharMap { 186 class CFX_CharMap {
187 public: 187 public:
188 static CFX_ByteString GetByteString(uint16_t codepage, 188 static CFX_ByteString GetByteString(uint16_t codepage,
189 const CFX_WideString& wstr); 189 const CFX_WideStringC& wstr);
190 190
191 static CFX_WideString GetWideString(uint16_t codepage, 191 static CFX_WideString GetWideString(uint16_t codepage,
192 const CFX_ByteString& bstr); 192 const CFX_ByteStringC& bstr);
193 193
194 CFX_CharMap() = delete; 194 CFX_CharMap() = delete;
195 }; 195 };
196 196
197 class CFX_UTF8Decoder { 197 class CFX_UTF8Decoder {
198 public: 198 public:
199 CFX_UTF8Decoder() { m_PendingBytes = 0; } 199 CFX_UTF8Decoder() { m_PendingBytes = 0; }
200 200
201 void Clear(); 201 void Clear();
202 202
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 FX_FLOAT c; 1058 FX_FLOAT c;
1059 FX_FLOAT d; 1059 FX_FLOAT d;
1060 FX_FLOAT e; 1060 FX_FLOAT e;
1061 FX_FLOAT f; 1061 FX_FLOAT f;
1062 FX_FLOAT g; 1062 FX_FLOAT g;
1063 FX_FLOAT h; 1063 FX_FLOAT h;
1064 FX_FLOAT i; 1064 FX_FLOAT i;
1065 }; 1065 };
1066 1066
1067 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ 1067 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fx_extension.cpp ('k') | core/fxcrt/include/fx_string.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698