MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Setup_HLSL

Method Setup_HLSL

Source/Engine/Utilities/TextProcessing.cpp:15–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void TextProcessing::Setup_HLSL()
16{
17 static SeparatorData separators[] =
18 {
19 { '\r', '\n' },
20 { '/', '/' },
21 { '/', '*' },
22 { '\n', 0 },
23 { '\t', 0 },
24 { ' ', 0 },
25 { '.', 0 },
26 { ',', 0 },
27 { ':', 0 },
28 { ';', 0 },
29 { '+', 0 },
30 { '-', 0 },
31 { '(', 0 },
32 { ')', 0 },
33 { '!', 0 },
34 { '=', 0 },
35 { '&', 0 },
36 { '%', 0 },
37 { '*', 0 },
38 { '<', 0 },
39 { '>', 0 },
40 { '[', 0 },
41 { ']', 0 },
42 { '{', 0 },
43 { '}', 0 },
44 };
45 Separators.Set(separators, ARRAY_COUNT(separators));
46 static char whitespaces[] =
47 {
48 9,
49 10,
50 11,
51 12,
52 13,
53 32,
54 };
55 Whitespaces.Set(whitespaces, ARRAY_COUNT(whitespaces));
56 SingleLineComment = SeparatorData('/', '/');
57 MultiLineCommentSeparator = SeparatorData('/', '*');
58}
59
60char TextProcessing::ReadChar()
61{

Callers 1

initMethod · 0.80

Calls 2

SeparatorDataClass · 0.85
SetMethod · 0.45

Tested by

no test coverage detected