MaterialsOptimizer.Parser.UnQuote C# (CSharp) Method

UnQuote() public method

public UnQuote ( string s, bool _unSemiColon ) : string
s string
_unSemiColon bool
return string
        public string UnQuote( string s, bool _unSemiColon )
        {
            if ( s[0] == '\"' ) s = s.Remove( 0, 1 );
            if ( _unSemiColon && s[s.Length-1] == ';' ) s = s.Remove( s.Length-2 );
            if ( s[s.Length-1] == '\"' ) s = s.Remove( s.Length-2 );
            return s;
        }