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

Method ReadLine

Source/Engine/Utilities/TextProcessing.cpp:184–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void TextProcessing::ReadLine(Token* token)
185{
186 // Set line start but reset its length
187 token->Start = _cursor;
188 token->Length = 0;
189
190 // Read until can
191 while (_position < _length)
192 {
193 // Read char
194 char c = moveForward();
195
196 // Check new-line char
197 if (c == '\n')
198 {
199 return;
200 }
201
202 // Move to the next char
203 token->Length++;
204 }
205}
206
207void TextProcessing::ReadLine()
208{

Callers 7

processMethod · 0.80
ProcessMethod · 0.80
ProcessMethod · 0.80
OnParseBeforeMethod · 0.80
OnParseBeforeMethod · 0.80
LoadLogFileMethod · 0.80
WhichMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected