MCPcopy Create free account
hub / github.com/davisking/dlib / tokenizer_kernel_1

Method tokenizer_kernel_1

dlib/tokenizer/tokenizer_kernel_1.cpp:15–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13// ----------------------------------------------------------------------------------------
14
15 tokenizer_kernel_1::
16 tokenizer_kernel_1 (
17 ) :
18 headset(0),
19 bodyset(0),
20 have_peeked(false)
21 {
22 try
23 {
24 headset = new bool[UCHAR_MAX];
25 bodyset = new bool[UCHAR_MAX];
26
27 clear();
28 }
29 catch (...)
30 {
31 if (headset) delete [] headset;
32 if (bodyset) delete [] bodyset;
33 throw;
34 }
35 }
36
37// ----------------------------------------------------------------------------------------
38

Callers

nothing calls this directly

Calls 1

clearFunction · 0.50

Tested by

no test coverage detected