Skip to main content

ts_compare_string

Function ts_compare_string 

Source
pub fn ts_compare_string(a: &[u8], b: &[u8]) -> i32
Expand description

tsCompareString with no prefix match: the bytes of the two lexemes. The result is the difference of the first two bytes that are not equal, as the memcmp of the C library gives for one byte, or -1 or 1 when one lexeme starts with the other.