MCPcopy Create free account
hub / github.com/docling-project/docling-parse / is_space

Function is_space

src/parse/utils/string.h:204–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 bool is_space(char32_t c)
205 {
206 static const std::unordered_set<char32_t> unicode_spaces = {
207 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x0020, 0x0085, 0x00A0,
208 0x1680, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006,
209 0x2007, 0x2008, 0x2009, 0x200A, 0x2028, 0x2029, 0x202F, 0x205F, 0x3000
210 };
211 return unicode_spaces.count(c) > 0;
212 }
213
214 bool is_space(const std::string& val)
215 {

Callers 1

create_word_cellsMethod · 0.85

Calls 5

atMethod · 0.80
countMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected