AGS.Editor.AutoComplete.SkipWhitespace C# (CSharp) Метод

SkipWhitespace() приватный статический Метод

private static SkipWhitespace ( FastString &script ) : void
script AGS.CScript.Compiler.FastString
Результат void
        private static void SkipWhitespace(ref FastString script)
        {
            if (script.Length == 0)
            {
                return;
            }

            int index = 0;
            while ((script[index] == ' ') || (script[index] == '\t')
                || (script[index] == '\r') || (script[index] == '\n'))
            {
                index++;
                if (index >= script.Length)
                {
                    script = string.Empty;
                    return;
                }
            }
            if (index > 0)
            {
                script = script.Substring(index);
            }
        }