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 11 namespace base { 12 13 #if defined(FILE_PATH_USES_WIN_SEPARATORS) 14 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("\\/"); 15 #else // FILE_PATH_USES_WIN_SEPARATORS 16 const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("/"); 17 #endif // FILE_PATH_USES_WIN_SEPARATORS 18 19 const size_t FilePath::kSeparatorsLength = std::size(kSeparators); 20 21 const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL("."); 22 const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL(".."); 23 24 const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.'); 25 26 } // namespace base 27