MaterialsOptimizer.Parser.UnQuote C# (CSharp) 메소드

UnQuote() 공개 메소드

public UnQuote ( string s, bool _unSemiColon ) : string
s string
_unSemiColon bool
리턴 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;
        }