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)
| 26 | |
| 27 | |
| 28 | def charStrAt(src: str, pos: int) -> str | None: |
| 29 | """ |
| 30 | Returns the Unicode value of the character at the specified location. |
| 31 | |
| 32 | @param - index The zero-based index of the desired character. |
| 33 | If there is no character at the specified index, NaN is returned. |
| 34 | |
| 35 | This was added for compatibility with python |
| 36 | """ |
| 37 | try: |
| 38 | return src[pos] |
| 39 | except IndexError: |
| 40 | return None |
| 41 | |
| 42 | |
| 43 | _ItemTV = TypeVar("_ItemTV") |
no outgoing calls
no test coverage detected
searching dependent graphs…