This method extracts characters from the string, starting with the first character, which are in the set of characters identified by lpszCharSet. If the first character of the string is not in the character set, then SpanIncluding returns an empty string. Otherwise, it returns a sequence of consecutive characters which are in the set.
CString SpanIncluding( LPCTSTR lpszCharSet ) const;Parameters lpszCharSet Specifies a string interPReted as a set of characters. Return Value Returns a substring that contains characters in the string that are in lpszCharSet, beginning with the first character in the string and ending when a character is found in the string that is not in lpszCharSet. SpanIncluding returns an empty substring if the first character in the string is not in the specified set.
新闻热点
疑难解答