MCPcopy Create free account
hub / github.com/Genivia/ugrep / Tables

Method Tables

lib/posix.cpp:43–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace Posix {
42
43Tables::Tables()
44{
45 static const int Alnum[] = { '0', '9', 'A', 'Z', 'a', 'z', 0, 0 };
46 static const int Alpha[] = { 'A', 'Z', 'a', 'z', 0, 0 };
47 static const int ASCII[] = { 0, 127, 0, 0 };
48 static const int Blank[] = { 9, 9, 32, 32, 0, 0 };
49 static const int Cntrl[] = { 0, 31, 127, 127, 0, 0 };
50 static const int Digit[] = { '0', '9', 0, 0 };
51 static const int Graph[] = { '!', '~', 0, 0 };
52 static const int Lower[] = { 'a', 'z', 0, 0 };
53 static const int Print[] = { ' ', '~', 0, 0 };
54 static const int Punct[] = { '!', '/', ':', '@', '[', '`', '{', '~', 0, 0 };
55 static const int Space[] = { 9, 13, 32, 32, 0, 0 };
56 static const int Upper[] = { 'A', 'Z', 0, 0 };
57 static const int Word[] = { '0', '9', 'A', 'Z', '_', '_', 'a', 'z', 0, 0 };
58 static const int XDigit[] = { '0', '9', 'A', 'F', 'a', 'f', 0, 0 };
59
60 range["Alnum"] = Alnum;
61 range["Alpha"] = Alpha;
62 range["ASCII"] = ASCII;
63 range["Blank"] = range["h"] = Blank;
64 range["Cntrl"] = Cntrl;
65 range["Digit"] = range["d"] = Digit;
66 range["Graph"] = Graph;
67 range["Lower"] = range["l"] = Lower;
68 range["Print"] = Print;
69 range["Punct"] = Punct;
70 range["Space"] = range["s"] = Space;
71 range["Upper"] = range["u"] = Upper;
72 range["Word"] = range["w"] = Word;
73 range["XDigit"] = range["x"] = XDigit;
74}
75
76static const Tables tables;
77

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected