MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / isCompletionCharacter

Function isCompletionCharacter

tools/shell/linenoise.cpp:1924–1941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1922}
1923
1924bool isCompletionCharacter(char c) {
1925 if (c >= 'A' && c <= 'Z') {
1926 return true;
1927 }
1928 if (c >= 'a' && c <= 'z') {
1929 return true;
1930 }
1931 if (c == '_') {
1932 return true;
1933 }
1934 if (c == '.') {
1935 return true;
1936 }
1937 if (c == ':') {
1938 return true;
1939 }
1940 return false;
1941}
1942
1943bool linenoiseAddCompletionMarker(const char* buf, uint64_t len, std::string& result_buffer,
1944 std::vector<highlightToken>& tokens, struct linenoiseState* l) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected