LEFT | RIGHT |
1 // Copyright (C) 2016 and later: Unicode, Inc. and others. | 1 // Copyright (C) 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html | 2 // License & terms of use: http://www.unicode.org/copyright.html |
3 /* | 3 /* |
4 ******************************************************************************* | 4 ******************************************************************************* |
5 * Copyright (C) 2010-2015, International Business Machines | 5 * Copyright (C) 2010-2015, International Business Machines |
6 * Corporation and others. All Rights Reserved. | 6 * Corporation and others. All Rights Reserved. |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 * file name: charstr.cpp | 8 * file name: charstr.cpp |
9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 CharString &CharString::ensureEndsWithFileSeparator(UErrorCode &errorCode) { | 165 CharString &CharString::ensureEndsWithFileSeparator(UErrorCode &errorCode) { |
166 char c; | 166 char c; |
167 if(U_SUCCESS(errorCode) && len>0 && | 167 if(U_SUCCESS(errorCode) && len>0 && |
168 (c=buffer[len-1])!=U_FILE_SEP_CHAR && c!=U_FILE_ALT_SEP_CHAR) { | 168 (c=buffer[len-1])!=U_FILE_SEP_CHAR && c!=U_FILE_ALT_SEP_CHAR) { |
169 append(U_FILE_SEP_CHAR, errorCode); | 169 append(U_FILE_SEP_CHAR, errorCode); |
170 } | 170 } |
171 return *this; | 171 return *this; |
172 } | 172 } |
173 | 173 |
174 U_NAMESPACE_END | 174 U_NAMESPACE_END |
LEFT | RIGHT |