Axiom.RenderSystems.OpenGL.ATI.Compiler2Pass.IsSymbol C# (CSharp) Method

IsSymbol() protected method

Check to see if the text is in the symbol text library.
protected IsSymbol ( string symbol, int &symbolSize ) : bool
symbol string
symbolSize int
return bool
		protected bool IsSymbol( string symbol, out int symbolSize )
		{
			// compare text at source+charpos with the symbol : limit testing to symbolsize

			// assume failure
			bool symbolFound = false;

			symbolSize = symbol.Length;

			if ( charPos + symbolSize <= endOfSource )
			{
				if ( string.Compare( source.Substring( charPos, symbolSize ), symbol ) == 0 )
				{
					symbolFound = true;
				}
			}

			return symbolFound;
		}