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

◆ starts_with() [1/4]

bool xtd::ustring::starts_with ( value_type  value) const
noexcept

Determines whether the beginning of this instance of xtd::ustring matches a specified xtd::ustring.

Parameters
valueA xtd::ustring to compare to.
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.