LuaScript.Compat を新設し AviUtl 互換層を移設

このコミットが含まれているのは:
routersys committed 2026-07-03 11:50:08 +09:00
1 親 d9e6132a1f
コミット 9a630ecb5a
13ファイル変更
+25

検索条件に一致するファイルはありません

+21
ファイルの表示
@@ -0,0 +1,21 @@
namespace LuaScript.Compat
{
internal static class ScriptParserHelper
{
public static bool IsSectionHeader(string line)
{
int i = SkipSpaces(line, 0);
return i < line.Length && line[i] == '@';
}
public static int SkipSpaces(string text, int index)
{
while (index < text.Length && (text[index] == ' ' || text[index] == '\t'))
index++;
return index;
}
public static bool IsNameChar(char c) =>
(c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9');
}
}