Update utils.py

Added arguments description for use_display_len
This commit is contained in:
Henry Hsiao 2024-07-11 07:39:41 +09:00 committed by GitHub
parent a95587b056
commit 23b4ce7dca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2307,6 +2307,9 @@ def m_len(target, use_display_len=False):
Args:
target (str): A string with potential MXP components
to search.
use_display_len (bool, optional): If `True`, use display_len
instead of len. Default is `False`, use `True` if target
contain east asian characters.
Returns:
length (int): The length of `target`, ignoring MXP components.