Returns the Unicode value of the character at the specified location. @param - index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. This was added for compatibility with python
(src: str, pos: int)
| 11 | |
| 12 | |
| 13 | def charCodeAt(src: str, pos: int) -> int | None: |
| 14 | """ |
| 15 | Returns the Unicode value of the character at the specified location. |
| 16 | |
| 17 | @param - index The zero-based index of the desired character. |
| 18 | If there is no character at the specified index, NaN is returned. |
| 19 | |
| 20 | This was added for compatibility with python |
| 21 | """ |
| 22 | try: |
| 23 | return ord(src[pos]) |
| 24 | except IndexError: |
| 25 | return None |
| 26 | |
| 27 | |
| 28 | def charStrAt(src: str, pos: int) -> str | None: |
no outgoing calls
no test coverage detected
searching dependent graphs…