diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-26 03:23:29 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-26 03:23:29 +0000 |
commit | 1f1f649270a52d7bd19590aebef22b633d6b1069 (patch) | |
tree | 887a094d96c33fb016b5c5c68642212f35855699 /TAO/TAO_IDL/util/utl_string.cpp | |
parent | 1fe3e2be70fbec3185b6f7530fa887a4c9d4890a (diff) | |
download | ATCD-1f1f649270a52d7bd19590aebef22b633d6b1069.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/util/utl_string.cpp')
-rw-r--r-- | TAO/TAO_IDL/util/utl_string.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp index 9058f6aa58b..78231cf1f5f 100644 --- a/TAO/TAO_IDL/util/utl_string.cpp +++ b/TAO/TAO_IDL/util/utl_string.cpp @@ -142,7 +142,9 @@ UTL_String::UTL_String (UTL_String *s) // Compute a canonical form for this string. This is (implemented as) // a corresponding string with all upper case characters where the -// original has lower case characters, identical characters otherwise +// original has lower case characters, identical characters otherwise. +// In addition, Microsoft-style pathnames are put into a canonical +// form (i.e., replacing = '\\' with '\'). void UTL_String::canonicalize (void) { @@ -152,7 +154,7 @@ UTL_String::canonicalize (void) for (i = 0, j = 0; i < len; i++, j++) { // Put Microsoft-style pathnames into a canonical form. - if (p_str[j] == '\\' && p_str[j + 1]) + if (p_str[j] == '\\' && p_str[j + 1] == '\\') { c_str[i] = '\\'; j++; |