summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql/v1/ide/completion/text/word.h
blob: b4b0726ac33200b1f1cf87120259b39112db7f55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include <util/charset/unidata.h>

namespace NSQLComplete {

static const char WordBreakCharacters[] = " \t\v\f\a\b\r\n`~!@#$%^&*-=+[](){}\\|;:'\".,<>/?";

bool IsWordBoundary(char ch);

size_t LastWordIndex(TStringBuf text);

TStringBuf LastWord(TStringBuf text);

} // namespace NSQLComplete