repl.txt (589B)
1 2 {{alias}}( str ) 3 Tests whether a string contains only hexadecimal digits. 4 5 The function does not recognize `x` (as in the standard `0x` prefix). 6 7 Parameters 8 ---------- 9 str: string 10 Input string. 11 12 Returns 13 ------- 14 bool: boolean 15 Boolean indicating whether a string contains only hexadecimal digits. 16 17 Examples 18 -------- 19 > var bool = {{alias}}( '0123456789abcdefABCDEF' ) 20 true 21 > bool = {{alias}}( '0xffffff' ) 22 false 23 > bool = {{alias}}( 'x' ) 24 false 25 > bool = {{alias}}( '' ) 26 false 27 28 See Also 29 -------- 30