mirror of
https://github.com/textmate/textmate.git
synced 2026-01-23 05:37:55 -05:00
18 lines
289 B
C++
18 lines
289 B
C++
#include "classification.h"
|
|
#include "ctype.h"
|
|
#include "utf8.h"
|
|
|
|
namespace text
|
|
{
|
|
bool is_word_char (std::string const& str)
|
|
{
|
|
return text::is_word_char(utf8::to_ch(str));
|
|
}
|
|
|
|
bool is_whitespace (std::string const& str)
|
|
{
|
|
return text::is_space(utf8::to_ch(str));
|
|
}
|
|
|
|
} /* text */
|