Returns the replacement for the specified Unicode code point.
defget_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 instanceifreplacements.contains(ord("-")):replacement=replacements.get_replacement(ord("-"))print("The replacement for hyphen is "+chr(replacement))```### AliasesThesenamescall`get_replacement`too,limitedtotheoverloadslisted.|Alias|Accepts||:-|:-||`get_replacement_int32`|`get_replacement_int32(code_point)`|### See Also*class[`CharacterReplacementDictionary`](/search/python-net/groupdocs.search.dictionaries/characterreplacementdictionary/)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.