File: unicode_segmentation_rs.pyi

package info (click to toggle)
unicode-segmentation-rs 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 228 kB
  • sloc: python: 338; makefile: 18
file content (17 lines) | stat: -rw-r--r-- 661 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: MIT
"""
Type stubs for unicode-segmentation-rs

This module provides Unicode text segmentation and width calculation.
"""

def graphemes(text: str, is_extended: bool) -> list[str]: ...
def grapheme_indices(text: str, is_extended: bool) -> list[tuple[int, str]]: ...
def split_word_bounds(text: str) -> list[str]: ...
def split_word_bound_indices(text: str) -> list[tuple[int, str]]: ...
def unicode_words(text: str) -> list[str]: ...
def unicode_sentences(text: str) -> list[str]: ...
def text_width(text: str) -> int: ...
def gettext_wrap(text: str, width: int) -> list[str]: ...