Skip to content

Commit 41879f9

Browse files
committed
replace char by char_t
1 parent d728204 commit 41879f9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/xtd.core/include/xtd/basic_string_comparer.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace xtd {
3838
/// @return A xtd::basic_string_comparer object.
3939
/// @remarks The xtd::basic_string_comparer returned by the xtd::basic_string_comparer::current_culture property can be used when strings are linguistically relevant. For example, if strings are displayed to the user, or if strings are the result of user interaction, culture-sensitive string comparison should be used to order the string data.
4040
/// @remarks The current culture is the xtd::globalization::culture_info object associated with the current thread.
41-
/// @remarks The xtd::::basic_string_comparer::current_culture property actually returns an instance of an anonymous class derived from the ::basic_string_comparer class.
41+
/// @remarks The xtd::basic_string_comparer::current_culture property actually returns an instance of an anonymous class derived from the ::basic_string_comparer class.
4242
/// @remarks Each call to the ::basic_string_comparer::current_culture property get accessor returns a new ::basic_string_comparer object, as the following code shows.
4343
/// ```
4444
/// void compare_current_culture_basic_string_comparer() {
@@ -129,12 +129,12 @@ namespace xtd {
129129
throw xtd::argument_exception {};
130130
}
131131
/// @cond
132-
int32 compare(const char* x, const char* y) const {
132+
int32 compare(const char_t* x, const char_t* y) const {
133133
if (x == y) return 0;
134134
return compare(basic_string<char_t> {x}, basic_string<char_t> {y});
135135
}
136-
int32 compare(const basic_string<char_t>& x, const char* y) const {return compare(x, basic_string<char_t> {y});}
137-
int32 compare(const char* x, const basic_string<char_t>& y) const {return compare(basic_string<char_t> {x}, y);}
136+
int32 compare(const basic_string<char_t>& x, const char_t* y) const {return compare(x, basic_string<char_t> {y});}
137+
int32 compare(const char_t* x, const basic_string<char_t>& y) const {return compare(basic_string<char_t> {x}, y);}
138138
/// @endcond
139139
/// @brief When overridden in a derived class, compares two strings and returns an indication of their relative sort order.
140140
/// @param x An object to compare to `y`.
@@ -182,11 +182,11 @@ namespace xtd {
182182
throw xtd::argument_exception {};
183183
}
184184
/// @cond
185-
bool equals(const char* x, const char* y) const {
185+
bool equals(const char_t* x, const char_t* y) const {
186186
if (x == y) return true;
187187
return equals(basic_string<char_t> {x}, basic_string<char_t> {y});}
188-
bool equals(const basic_string<char_t>& x, const char* y) const {return equals(x, basic_string<char_t> {y});}
189-
bool equals(const char* x, const basic_string<char_t>& y) const {return equals(basic_string<char_t> {x}, y);}
188+
bool equals(const basic_string<char_t>& x, const char_t* y) const {return equals(x, basic_string<char_t> {y});}
189+
bool equals(const char_t* x, const basic_string<char_t>& y) const {return equals(basic_string<char_t> {x}, y);}
190190
/// @endcond
191191
/// @brief When overridden in a derived class, indicates whether two strings are equal.
192192
/// @param x An object to compare to `y`.
@@ -218,7 +218,7 @@ namespace xtd {
218218
throw xtd::hash_code::combine(obj);
219219
}
220220
/// @cond
221-
xtd::size get_hash_code(const char* obj) const {return get_hash_code(basic_string<char_t> {obj});}
221+
xtd::size get_hash_code(const char_t* obj) const {return get_hash_code(basic_string<char_t> {obj});}
222222
/// @endcond
223223
/// @brief When overridden in a derived class, gets the hash code for the specified string.
224224
/// @param obj A string.

0 commit comments

Comments
 (0)