OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 static const char EMPTY_STR[] = ""; | 27 static const char EMPTY_STR[] = ""; |
28 | 28 |
29 // EXT_DELIM separates a file basename from extension | 29 // EXT_DELIM separates a file basename from extension |
30 const char EXT_DELIM = '.'; | 30 const char EXT_DELIM = '.'; |
31 | 31 |
32 // FOLDER_DELIMS separate folder segments and the filename | 32 // FOLDER_DELIMS separate folder segments and the filename |
33 const char* const FOLDER_DELIMS = "/\\"; | 33 const char* const FOLDER_DELIMS = "/\\"; |
34 | 34 |
35 // DEFAULT_FOLDER_DELIM is the preferred delimiter for this platform | 35 // DEFAULT_FOLDER_DELIM is the preferred delimiter for this platform |
36 #if WEBRTC_WIN | 36 #ifdef WEBRTC_WIN |
37 const char DEFAULT_FOLDER_DELIM = '\\'; | 37 const char DEFAULT_FOLDER_DELIM = '\\'; |
38 #else // !WEBRTC_WIN | 38 #else // !WEBRTC_WIN |
39 const char DEFAULT_FOLDER_DELIM = '/'; | 39 const char DEFAULT_FOLDER_DELIM = '/'; |
40 #endif // !WEBRTC_WIN | 40 #endif // !WEBRTC_WIN |
41 | 41 |
42 /////////////////////////////////////////////////////////////////////////////// | 42 /////////////////////////////////////////////////////////////////////////////// |
43 // Pathname - parsing of pathnames into components, and vice versa | 43 // Pathname - parsing of pathnames into components, and vice versa |
44 /////////////////////////////////////////////////////////////////////////////// | 44 /////////////////////////////////////////////////////////////////////////////// |
45 | 45 |
46 bool Pathname::IsFolderDelimiter(char ch) { | 46 bool Pathname::IsFolderDelimiter(char ch) { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // sanity checking | 249 // sanity checking |
250 return (isalpha(drive[0]) && | 250 return (isalpha(drive[0]) && |
251 drive[1] == ':' && | 251 drive[1] == ':' && |
252 drive[2] == '\\'); | 252 drive[2] == '\\'); |
253 } | 253 } |
254 #endif | 254 #endif |
255 | 255 |
256 /////////////////////////////////////////////////////////////////////////////// | 256 /////////////////////////////////////////////////////////////////////////////// |
257 | 257 |
258 } // namespace rtc | 258 } // namespace rtc |
OLD | NEW |