xtd 0.2.0
Loading...
Searching...
No Matches

◆ starts_with() [4/4]

bool xtd::ustring::starts_with ( const ustring value,
bool  ignore_case 
) const
noexcept

Determines whether the beginning of this instance of xtd::ustring matches a specified xtd::ustring, ignoring or honoring their case.

Parameters
valueA xtd::ustring to compare to.
ignore_casetrue to ignore case when comparing the specified string and value; otherwise, false
Returns
bool true if value matches the beginning of the specified string; otherwise, false.
Remarks
This method compares value to the substring at the beginning of the specified string that is the same length as value, and returns an indication whether they are equal. To be equal, value must be a reference to this same instance, or match the beginning of the specified string.