blob: fc7d663642060c356ebd4e195ed022c5749f73ae [file] [log] [blame]
Scott Graham66962112018-06-08 12:42:08 -07001// 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 "base/files/file_path.h"
8#include "base/macros.h"
9
10namespace base {
11
12#if defined(FILE_PATH_USES_WIN_SEPARATORS)
13const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("\\/");
Scott Graham98cd3ca2018-06-14 22:26:55 -070014#else // FILE_PATH_USES_WIN_SEPARATORS
Scott Graham66962112018-06-08 12:42:08 -070015const FilePath::CharType FilePath::kSeparators[] = FILE_PATH_LITERAL("/");
16#endif // FILE_PATH_USES_WIN_SEPARATORS
17
18const size_t FilePath::kSeparatorsLength = arraysize(kSeparators);
19
20const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL(".");
21const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL("..");
22
23const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.');
24
25} // namespace base