DotNetXri.Syntax.GCSAuthority.scanGCSChar C# (CSharp) Method

scanGCSChar() private method

Parses the input stream into the GCS Character String
private scanGCSChar ( ParseStream oParseStream ) : bool
oParseStream ParseStream The input stream to scan from
return bool
        private bool scanGCSChar(ParseStream oParseStream)
        {
            if (oParseStream.empty())
            {
                return false;
            }

            switch (oParseStream.getData()[0])
            {
                case '+':
                case '=':
                case '@':
                case '$':
                case '!':
                    {
                        // this way provides a clean copy, whereas substring does not
                        msGCSRoot = char.ToString(oParseStream.getData()[0]);
                        oParseStream.consume(1);
                        return true;
                    }
            }

            return false;
        }