staticbool lcl_IsWhiteSpace( sal_Unicode c )
{ return c == ' '
|| c == u'\x0009'
|| c == u'\x000A'
|| c == u'\x000D';
}
void TokenContext::characters( const OUString& rCharacters )
{ // get iterators for string data const sal_Unicode* pBegin = rCharacters.getStr(); const sal_Unicode* pEnd = &( pBegin[ rCharacters.getLength() ] );
// raise error if non-whitespace character is found if( !::std::all_of( pBegin, pEnd, lcl_IsWhiteSpace ) )
GetImport().SetError( XMLERROR_UNKNOWN_CHARACTERS, rCharacters );
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.