| 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 #include <cctype> | 7 #include <cctype> |
| 8 #include <cwctype> | 8 #include <cwctype> |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 #ifdef __cplusplus | 127 #ifdef __cplusplus |
| 128 } | 128 } |
| 129 #endif | 129 #endif |
| 130 #endif | 130 #endif |
| 131 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 131 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 132 #ifdef __cplusplus | 132 #ifdef __cplusplus |
| 133 extern "C" { | 133 extern "C" { |
| 134 #endif | 134 #endif |
| 135 FXSYS_FILE* FXSYS_wfopen(const FX_WCHAR* filename, const FX_WCHAR* mode) { | 135 FXSYS_FILE* FXSYS_wfopen(const FX_WCHAR* filename, const FX_WCHAR* mode) { |
| 136 return FXSYS_fopen(CFX_ByteString::FromUnicode(filename), | 136 return FXSYS_fopen(CFX_ByteString::FromUnicode(filename).c_str(), |
| 137 CFX_ByteString::FromUnicode(mode)); | 137 CFX_ByteString::FromUnicode(mode).c_str()); |
| 138 } | 138 } |
| 139 char* FXSYS_strlwr(char* str) { | 139 char* FXSYS_strlwr(char* str) { |
| 140 if (!str) { | 140 if (!str) { |
| 141 return NULL; | 141 return NULL; |
| 142 } | 142 } |
| 143 char* s = str; | 143 char* s = str; |
| 144 while (*str) { | 144 while (*str) { |
| 145 *str = FXSYS_tolower(*str); | 145 *str = FXSYS_tolower(*str); |
| 146 str++; | 146 str++; |
| 147 } | 147 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 buf[wlen] = bstr[i]; | 246 buf[wlen] = bstr[i]; |
| 247 } | 247 } |
| 248 wlen++; | 248 wlen++; |
| 249 } | 249 } |
| 250 return wlen; | 250 return wlen; |
| 251 } | 251 } |
| 252 #ifdef __cplusplus | 252 #ifdef __cplusplus |
| 253 } | 253 } |
| 254 #endif | 254 #endif |
| 255 #endif | 255 #endif |
| OLD | NEW |