get_replacement method

On this page

get_replacement

Returns the replacement for the specified Unicode code point.

def get_replacement(self, code_point):
    ...
Parameter Type Description
code_point int The character to get a replacement for.

Returns: int: The replacement for the specified Unicode code point.

Example

    # Assuming `replacements` is a CharacterReplacementDictionary instance
    if replacements.contains(ord("-")):
        replacement = replacements.get_replacement(ord("-"))
        print("The replacement for hyphen is " + chr(replacement))
    ```

### Aliases

These names call `get_replacement` too, limited to the overloads listed.

| Alias | Accepts |
| :- | :- |
| `get_replacement_int32` | `get_replacement_int32(code_point)` |

### See Also
* class [`CharacterReplacementDictionary`](/search/python-net/groupdocs.search.dictionaries/characterreplacementdictionary/)

On this page