Files
TierMakerGodot/CommandParser.cs
2024-04-21 15:43:32 -05:00

44 lines
1.2 KiB
C#

// using System.Collections.Generic;
// public static class CommandParser
// {
// public static List<string> SplitString(string s)
// {
// List<string> l = new();
// bool quoted = false;
// bool escaped = false;
// bool trimming = true;
// string current = "";
// foreach (char c in s)
// {
// switch (c)
// {
// case '\\':
// if (escaped)
// current += '\\';
// escaped = !escaped;
// break;
// case '"':
// if (escaped)
// {
// current += '"';
// escaped = false;
// }
// else
// {
// if (quoted)
// {
// quoted = false;
// }
// else
// {
// }
// }
// break;
// case
// }
// }
// }
// }