EvalCommandsLineByLine
This commit is contained in:
@@ -474,6 +474,16 @@ String16 SkipIdent(String16 *string) {
|
||||
return begin;
|
||||
}
|
||||
|
||||
bool MatchIdent(String16 *string, String16 expect) {
|
||||
String16 copy = *string;
|
||||
String16 ident = SkipIdent(©);
|
||||
if (ident == expect) {
|
||||
*string = copy;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
API bool Chop(String16 *string, String16 ending) {
|
||||
if (EndsWith(*string, ending)) {
|
||||
*string = Chop(*string, ending.len);
|
||||
|
||||
Reference in New Issue
Block a user