MINI MINI MANI MO
ó
i:Oc @ s× d Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d l m
Z
m Z m Z m
Z
m Z m Z d „ Z d „ Z d d „ Z d e d
d
d „ Z d d
d
d
„ Z d „ Z d „ Z d Z d S( sü
-----
UTF-8
-----
Functions for operating on byte :class:`str` encoded as :term:`UTF-8`
.. note::
In many cases, it is better to convert to :class:`unicode`, operate on the
strings, then convert back to :term:`UTF-8`. :class:`unicode` type can
handle many of these functions itself. For those that it doesn't
(removing control characters from length calculations, for instance) the
code to do so with a :class:`unicode` type is often simpler.
.. warning::
All of the functions in this module are deprecated. Most of them have
been replaced with functions that operate on unicode values in
:mod:`kitchen.text.display`. :func:`kitchen.text.utf8.utf8_valid` has
been replaced with a function in :mod:`kitchen.text.misc`.
iÿÿÿÿN( t b_( t
to_unicodet to_bytes( t byte_string_valid_encoding( t _textual_width_let byte_string_textual_width_fillt fillt
textual_widtht textual_width_chopt wrapc C s&