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

◆ is_ascii() [2/2]

template<typename type_t >
static bool xtd::box_char< type_t >::is_ascii ( const string s,
size_t  index 
)
inlinestatic

Indicates whether the character at the specified position in a specified string is an ASCII character ([ U+0000..U+007F ]).

Parameters
sA string.
indexThe position of the character to evaluate in s.
Returns
true if the character at position index in s is n ASCII character; otherwise, false.
Exceptions
xtd::argument_out_of_range_exceptionindex is greater than the last position in s.