• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <stddef.h>
6 
7 #include <iterator>
8 
9 #include "base/files/file_path.h"
10 #include "base/macros.h"
11 
12 namespace base {
13 
14 #if defined(FILE_PATH_USES_WIN_SEPARATORS)
15 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("\\/");
16 #else   // FILE_PATH_USES_WIN_SEPARATORS
17 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("/");
18 #endif  // FILE_PATH_USES_WIN_SEPARATORS
19 
20 const size_t FilePath::kSeparatorsLength = std::size(kSeparators);
21 
22 const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL(".");
23 const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL("..");
24 
25 const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.');
26 
27 }  // namespace base
28