Debian Codegraph @

vendor/re/src/category.ml

raw
1 type t = int
2
3 let equal (x : int) (y : int) = x = y
4 let compare (x : int) (y : int) = compare x y
5 let to_int x = x
6 let pp = Format.pp_print_int
7 let intersect x y = x land y <> 0
8 let ( ++ ) x y = x lor y
9 let dummy = -1
10 let inexistant = 1
11 let letter = 2
12 let not_letter = 4
13 let newline = 8
14 let lastnewline = 16
15 let search_boundary = 32
16
17 let from_char = function
18 (* Should match [cword] definition *)
19 | 'a' .. 'z'
20 | 'A' .. 'Z'
21 | '0' .. '9'
22 | '_' | '\170' | '\181' | '\186'
23 | '\192' .. '\214'
24 | '\216' .. '\246'
25 | '\248' .. '\255' -> letter
26 | '\n' -> not_letter ++ newline
27 | _ -> not_letter
28 ;;