YamlUtility.Grammar.YamlParser.ParseGlobalTagPrefix C# (CSharp) Method

ParseGlobalTagPrefix() private method

private ParseGlobalTagPrefix ( bool &success ) : GlobalTagPrefix
success bool
return GlobalTagPrefix
        private GlobalTagPrefix ParseGlobalTagPrefix(out bool success)
        {
            int errorCount = Errors.Count;
            GlobalTagPrefix globalTagPrefix = new GlobalTagPrefix();

            int counter = 0;
            while (true)
            {
                char ch = ParseUriChar(out success);
                if (success) { globalTagPrefix.Prefix.Add(ch); }
                else { break; }
                counter++;
            }
            if (counter > 0) { success = true; }
            if (success) { ClearError(errorCount); }
            else { Error("Failed to parse Prefix of GlobalTagPrefix."); }
            return globalTagPrefix;
        }
YamlParser