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

文字列系関数の提案 #640

Open
2 of 6 tasks
salano-ym opened this issue Apr 29, 2024 · 0 comments
Open
2 of 6 tasks

文字列系関数の提案 #640

salano-ym opened this issue Apr 29, 2024 · 0 comments

Comments

@salano-ym
Copy link
Member

salano-ym commented Apr 29, 2024

端の検索

端の削除

  • str.remove_prefix(prefix: str): str
    先頭がprefixなら削除
  • str.remove_suffix(suffix: str): str
    末尾がsuffixなら削除

幅埋め

  • str.pad_start(width: num, c: str = ' '): str
    長さがwidthになるようにcを先頭に追加
    str.pad_end(width: num, c: str = ' '): str
    長さがwidthになるようにcを末尾に追加
    str.pad_startとstr.pad_endを追加 #653

インデント

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant