MCPcopy Index your code
hub / github.com/clips/pattern / int_value

Function int_value

pattern/web/pdf/pdftypes.py:91–97  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

89
90# Type cheking
91def int_value(x):
92 x = resolve1(x)
93 if not isinstance(x, int):
94 if STRICT:
95 raise PDFTypeError('Integer required: %r' % x)
96 return 0
97 return x
98
99def float_value(x):
100 x = resolve1(x)

Callers 7

initializeMethod · 0.90
do_keywordMethod · 0.90
read_xref_fromMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
decodeMethod · 0.85

Calls 2

resolve1Function · 0.85
PDFTypeErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…