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

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

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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/src/fxcrt/fx_basic_array.cpp ('k') | core/src/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> // For offsetof(). 7 #include <stddef.h> // For offsetof().
8 8
9 #include "../../include/fxcrt/fx_basic.h" 9 #include "core/include/fxcrt/fx_basic.h"
10 #include "third_party/base/numerics/safe_math.h" 10 #include "third_party/base/numerics/safe_math.h"
11 11
12 static int _Buffer_itoa(char* buf, int i, FX_DWORD flags) { 12 static int _Buffer_itoa(char* buf, int i, FX_DWORD flags) {
13 if (i == 0) { 13 if (i == 0) {
14 buf[0] = '0'; 14 buf[0] = '0';
15 return 1; 15 return 1;
16 } 16 }
17 char buf1[32]; 17 char buf1[32];
18 int buf_pos = 31; 18 int buf_pos = 31;
19 FX_DWORD u = i; 19 FX_DWORD u = i;
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 fraction %= scale; 1086 fraction %= scale;
1087 scale /= 10; 1087 scale /= 10;
1088 } 1088 }
1089 return buf_size; 1089 return buf_size;
1090 } 1090 }
1091 CFX_ByteString CFX_ByteString::FormatFloat(FX_FLOAT d, int precision) { 1091 CFX_ByteString CFX_ByteString::FormatFloat(FX_FLOAT d, int precision) {
1092 FX_CHAR buf[32]; 1092 FX_CHAR buf[32];
1093 FX_STRSIZE len = FX_ftoa(d, buf); 1093 FX_STRSIZE len = FX_ftoa(d, buf);
1094 return CFX_ByteString(buf, len); 1094 return CFX_ByteString(buf, len);
1095 } 1095 }
OLDNEW
« no previous file with comments | « core/src/fxcrt/fx_basic_array.cpp ('k') | core/src/fxcrt/fx_basic_bstring_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698