MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / getOrds

Function getOrds

lib/core/convert.py:319–329  ·  view source on GitHub ↗

Returns ORD(...) representation of provided string value >>> getOrds(u'fo\\xf6bar') [102, 111, 246, 98, 97, 114] >>> getOrds(b"fo\\xc3\\xb6bar") [102, 111, 195, 182, 98, 97, 114]

(value)

Source from the content-addressed store, hash-verified

317 return retVal
318
319def getOrds(value):
320 """
321 Returns ORD(...) representation of provided string value
322
323 >>> getOrds(u'fo\\xf6bar')
324 [102, 111, 246, 98, 97, 114]
325 >>> getOrds(b"fo\\xc3\\xb6bar")
326 [102, 111, 195, 182, 98, 97, 114]
327 """
328
329 return [_ if isinstance(_, int) else ord(_) for _ in value]
330
331def getUnicode(value, encoding=None, noneToNull=False):
332 """

Callers 15

escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90
escaperMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…