public member function
<regex>
std::regex_traits::lookup_collatename
template <class ForwardIterator> string_type lookup_collatename (ForwardIterator first, ForwardIterator last) const;
Return collate name equivalent
Returns a string representing the named collating element that corresponds to the character sequence between first and last, or an empty string (if the character sequence is not a valid collating element).
This function is called when a potential named collating element is encountered in a regular expression.
引數
- first, last
- 指向字元序列中初始和最終位置的前向迭代器。使用的範圍是[first,last),其中包括first和last之間的所有字元,包括first指向的字元,但不包括last指向的字元。
返回值
The string representing the corresponding named collating element, or an empty string if it does not correspond to a collating element.