/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/Parser.java
ViewVC logotype

Diff of /jlscp/trunk/src/org/linuxsampler/lscp/Parser.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 783 by iliev, Wed Jun 1 07:11:31 2005 UTC revision 784 by iliev, Mon Oct 10 14:55:44 2005 UTC
# Line 381  final class Parser { Line 381  final class Parser {
381                                                    
382                  return null;                  return null;
383          }          }
384            
385            /**
386             * Eliminates the quotation marks if the string is quoted.
387             * @return New string without quotation marks if the string is quoted; else
388             * the same string is returned.
389             */
390            protected static String
391            removeQuotation(String s) {
392                    if(s == null || s.length() < 2) return s;
393                    char q = s.charAt(0);
394                    char q2 = s.charAt(s.length() - 1);
395                    if((q == '\'' && q2 == '\'') || (q == '"' && q2 == '"'))
396                            return s.substring(1, s.length() - 1);
397                    
398                    return s;
399            }
400  }  }

Legend:
Removed from v.783  
changed lines
  Added in v.784

  ViewVC Help
Powered by ViewVC