xtd
0.2.0
compare_ignore_case.cpp
Shows how to use
xtd::ustring::compare
method.
#include <xtd/console>
#include <xtd/ustring>
using namespace
xtd
;
auto
main()->int {
auto
result =
ustring::compare
(
"Aaa"
,
"aaa"
,
true
);
if
(result < 0)
console::write_line
(
"Aaa < aaa"
);
else
if
(result > 0)
console::write_line
(
"Aaa > aaa"
);
else
console::write_line
(
"Aaa == aaa"
);
}
// This code produces the following output:
//
// Aaa == aaa
Generated on Mon Oct 9 2023 14:41:55 for xtd by
Gammasoft
. All rights reserved.