MCPcopy Create free account
hub / github.com/apache/thrift / isJSONNumeric

Method isJSONNumeric

lib/php/lib/Protocol/TJSONProtocol.php:303–325  ·  view source on GitHub ↗
($b)

Source from the content-addressed store, hash-verified

301 }
302
303 private function isJSONNumeric($b)
304 {
305 switch ($b) {
306 case '+':
307 case '-':
308 case '.':
309 case '0':
310 case '1':
311 case '2':
312 case '3':
313 case '4':
314 case '5':
315 case '6':
316 case '7':
317 case '8':
318 case '9':
319 case 'E':
320 case 'e':
321 return true;
322 }
323
324 return false;
325 }
326
327 private function readJSONNumericChars()
328 {

Callers 1

readJSONNumericCharsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected