Lines Matching refs:_sFilename
115 public static String getBasename(String _sFilename) in getBasename() argument
117 if (_sFilename == null) in getBasename()
123 int nIdx = _sFilename.lastIndexOf("\\"); in getBasename()
126 nIdx = _sFilename.lastIndexOf("/"); in getBasename()
130 return _sFilename.substring(nIdx + 1); in getBasename()
132 return _sFilename; in getBasename()
135 public static String getNameNoSuffix(String _sFilename) in getNameNoSuffix() argument
137 if (_sFilename == null) in getNameNoSuffix()
141 int nIdx = _sFilename.lastIndexOf("."); in getNameNoSuffix()
144 return _sFilename.substring(0, nIdx); in getNameNoSuffix()
146 return _sFilename; in getNameNoSuffix()
149 public static String getSuffix(String _sFilename) in getSuffix() argument
151 if (_sFilename == null) in getSuffix()
155 int nIdx = _sFilename.lastIndexOf("."); in getSuffix()
158 return _sFilename.substring(nIdx ); in getSuffix()
163 public static String getPath(String _sFilename) in getPath() argument
165 if (_sFilename == null) in getPath()
171 int nIdx = _sFilename.lastIndexOf("\\"); in getPath()
174 nIdx = _sFilename.lastIndexOf("/"); in getPath()
178 return _sFilename.substring(0, nIdx); in getPath()