MCPcopy Index your code
hub / github.com/uber/aresdb / LA

Method LA

query/sql/util/caseInsensitiveStream.go:43–53  ·  view source on GitHub ↗

LA gets the value of the symbol at offset from the current position from the underlying CharStream and converts it to either upper case or lower case.

(offset int)

Source from the content-addressed store, hash-verified

41// from the underlying CharStream and converts it to either upper case
42// or lower case.
43func (is *CaseChangingStream) LA(offset int) int {
44 in := is.CharStream.LA(offset)
45 if in < 0 {
46 // Such as antlr.TokenEOF which is -1
47 return in
48 }
49 if is.upper {
50 return int(unicode.ToUpper(rune(in)))
51 }
52 return int(unicode.ToLower(rune(in)))
53}

Callers 15

QueryMethod · 0.80
WithMethod · 0.80
QueryNoWithMethod · 0.80
queryTermMethod · 0.80
QueryPrimaryMethod · 0.80
SortItemMethod · 0.80
GroupingExpressionsMethod · 0.80
NamedQueryMethod · 0.80
SetQuantifierMethod · 0.80
SelectItemMethod · 0.80
relationMethod · 0.80
JoinTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected