Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utf8: change return type of some helpers from int to size_t #1690

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Mar 16, 2024

  1. utf8: change type from int to size_t

    This update modifies the variable types that are used in calls to the
    `utf8_strnwidth` and `utf8_strwidth` functions. This modification is
    a proactive measure in anticipation of an upcoming interface change
    to these functions in the subsequent patch.
    
    Signed-off-by: Mohit Marathe <[email protected]>
    mohit-marathe committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    2e89da2 View commit details
    Browse the repository at this point in the history
  2. utf8: make utf8_strnwidth & utf8_strwidth return size_t instead of int

    This patch addresses the TODO comment of changing the return types
    of these functions from int to size_t.
    
    Signed-off-by: Mohit Marathe <[email protected]>
    mohit-marathe committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    615481e View commit details
    Browse the repository at this point in the history