Glatzemann 99216ca254 - Fixed some bugs in build system
- Build system optimizations
- Extended ProjectConverter: DX and SharpDX assemblies are now removed from linux projects to prevent errors
- Fixed a bunch of compiler warnings
- Removed DX11MetroShaderGenerator assembly. It is now included in ANX.Framework.Content.Pipeline
- Removed HLSLParser assembly. It is now included in ANX.Framework.Content.Pipeline.
- Removed shader parser from GL3-RenderSystem. It is now included in ANX.Framework.Content.Pipeline.
- Removed RenderSystem dependencies from StockShaderCodeGenerator (sscg) tool
2015-03-15 01:12:04 +01:00

41 lines
879 B
C#

using System;
// This file is part of the ANX.Framework created by the
// "ANX.Framework developer group" and released under the Ms-PL license.
// For details see: http://anxframework.codeplex.com/license
namespace ANX.Framework.Content.Pipeline.Helpers.HLSLParser
{
public class ParseTextWalker
{
public string Text
{
get;
private set;
}
public ParseTextWalker(string setText)
{
Text = setText;
Seek(0);
}
public void Seek(int length)
{
Text = Text.Substring(length);
string text = Text;
text = text.TrimStart(' ', '\n', '\r', '\t');
length = Text.Length - text.Length;
Text = Text.Substring(length);
}
public string RemoveUnneededChars(string text)
{
text = text.Replace("\n", "");
text = text.Replace("\r", "");
text = text.Replace("\t", "");
return text;
}
}
}