MCPcopy Create free account
hub / github.com/dynjs/dynjs / isWhitespace

Method isWhitespace

src/main/java/org/dynjs/runtime/Types.java:181–213  ·  view source on GitHub ↗
(char c)

Source from the content-addressed store, hash-verified

179 }
180
181 public static boolean isWhitespace(char c) {
182 switch (c) {
183 case '\n':
184 case '\r':
185 case '\u0009':
186 case '\u000B':
187 case '\u000C':
188 case '\u0020':
189 case '\u00A0':
190 case '\u1680':
191 case '\u180E':
192 case '\u2000':
193 case '\u2001':
194 case '\u2002':
195 case '\u2003':
196 case '\u2004':
197 case '\u2005':
198 case '\u2006':
199 case '\u2007':
200 case '\u2008':
201 case '\u2009':
202 case '\u200A':
203 case '\u2028':
204 case '\u2029':
205 case '\u202F':
206 case '\u205F':
207 case '\u3000':
208 case '\uFEFF':
209 return true;
210
211 }
212 return false;
213 }
214
215 static final Pattern decimalDigitPattern = Pattern.compile(".*[0-9].*");
216 public static Number stringToNumber(String str) {

Callers 4

trimStringMethod · 0.95
trimNumericStringMethod · 0.95
callMethod · 0.95
callMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected