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 "../../include/fxcrt/fx_basic.h" | 7 #include "../../include/fxcrt/fx_basic.h" |
8 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 8 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 #include <dirent.h> | 10 #include <dirent.h> |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 if (i < nLength - 2 && bsURI[i] == '%' && FX_IsXDigit(bsURI[i + 1]) && F
X_IsXDigit(bsURI[i + 2])) { | 287 if (i < nLength - 2 && bsURI[i] == '%' && FX_IsXDigit(bsURI[i + 1]) && F
X_IsXDigit(bsURI[i + 2])) { |
288 rURI += (FX_HexToI(bsURI[i + 1]) << 4 | FX_HexToI(bsURI[i + 2])); | 288 rURI += (FX_HexToI(bsURI[i + 1]) << 4 | FX_HexToI(bsURI[i + 2])); |
289 i += 2; | 289 i += 2; |
290 } else { | 290 } else { |
291 rURI += bsURI[i]; | 291 rURI += bsURI[i]; |
292 } | 292 } |
293 } | 293 } |
294 return CFX_WideString::FromUTF8(rURI, rURI.GetLength()); | 294 return CFX_WideString::FromUTF8(rURI, rURI.GetLength()); |
295 } | 295 } |
296 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 296 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
297 class CFindFileData : public CFX_Object | 297 class CFindFileData |
298 { | 298 { |
299 public: | 299 public: |
300 virtual ~CFindFileData() {} | 300 virtual ~CFindFileData() {} |
301 HANDLE m_Handle; | 301 HANDLE m_Handle; |
302 FX_BOOL m_bEnd; | 302 FX_BOOL m_bEnd; |
303 }; | 303 }; |
304 class CFindFileDataA : public CFindFileData | 304 class CFindFileDataA : public CFindFileData |
305 { | 305 { |
306 public: | 306 public: |
307 virtual ~CFindFileDataA() {} | 307 virtual ~CFindFileDataA() {} |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 } | 496 } |
497 | 497 |
498 CFX_Vector_3by1 CFX_Matrix_3by3::TransformVector(const CFX_Vector_3by1 &v) | 498 CFX_Vector_3by1 CFX_Matrix_3by3::TransformVector(const CFX_Vector_3by1 &v) |
499 { | 499 { |
500 return CFX_Vector_3by1( | 500 return CFX_Vector_3by1( |
501 a * v.a + b * v.b + c * v.c, | 501 a * v.a + b * v.b + c * v.c, |
502 d * v.a + e * v.b + f * v.c, | 502 d * v.a + e * v.b + f * v.c, |
503 g * v.a + h * v.b + i * v.c | 503 g * v.a + h * v.b + i * v.c |
504 ); | 504 ); |
505 } | 505 } |
OLD | NEW |