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

Method EatWhiteSpaces

Source/Engine/Utilities/TextProcessing.cpp:67–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void TextProcessing::EatWhiteSpaces()
68{
69 // Read until can
70 while (_position < _length)
71 {
72 // Peek char
73 char c = PeekChar();
74
75 // Check if is whitespace
76 bool isToken = true;
77 for (int32 i = 0; i < Whitespaces.Count(); i++)
78 {
79 if (Whitespaces[i] == c)
80 {
81 // Read it
82 moveForward();
83 isToken = false;
84 break;
85 }
86 }
87 if (isToken)
88 {
89 // End
90 return;
91 }
92 }
93}
94
95void TextProcessing::ReadToken(Token* token)
96{

Callers 1

ProcessMethod · 0.80

Calls 2

PeekCharFunction · 0.85
CountMethod · 0.45

Tested by

no test coverage detected