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

Side by Side Diff: core/fxcrt/fx_basic_bstring.cpp

Issue 1825953002: Move core/include/fxcrt to core/fxcrt/include. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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_basic_array.cpp ('k') | core/fxcrt/fx_basic_bstring_unittest.cpp » ('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 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cctype> 9 #include <cctype>
10 10
11 #include "core/include/fxcrt/fx_basic.h" 11 #include "core/fxcrt/include/fx_basic.h"
12 #include "third_party/base/numerics/safe_math.h" 12 #include "third_party/base/numerics/safe_math.h"
13 13
14 static int _Buffer_itoa(char* buf, int i, FX_DWORD flags) { 14 static int _Buffer_itoa(char* buf, int i, FX_DWORD flags) {
15 if (i == 0) { 15 if (i == 0) {
16 buf[0] = '0'; 16 buf[0] = '0';
17 return 1; 17 return 1;
18 } 18 }
19 char buf1[32]; 19 char buf1[32];
20 int buf_pos = 31; 20 int buf_pos = 31;
21 FX_DWORD u = i; 21 FX_DWORD u = i;
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 fraction %= scale; 1079 fraction %= scale;
1080 scale /= 10; 1080 scale /= 10;
1081 } 1081 }
1082 return buf_size; 1082 return buf_size;
1083 } 1083 }
1084 CFX_ByteString CFX_ByteString::FormatFloat(FX_FLOAT d, int precision) { 1084 CFX_ByteString CFX_ByteString::FormatFloat(FX_FLOAT d, int precision) {
1085 FX_CHAR buf[32]; 1085 FX_CHAR buf[32];
1086 FX_STRSIZE len = FX_ftoa(d, buf); 1086 FX_STRSIZE len = FX_ftoa(d, buf);
1087 return CFX_ByteString(buf, len); 1087 return CFX_ByteString(buf, len);
1088 } 1088 }
OLDNEW
« no previous file with comments | « core/fxcrt/fx_basic_array.cpp ('k') | core/fxcrt/fx_basic_bstring_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698