<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](readline.xhtml "readline --- GNU readline interface") | - [上一頁](unicodedata.xhtml "unicodedata --- Unicode 數據庫") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [文本處理服務](text.xhtml) ? - $('.inline-search').show(0); | # [`stringprep`](#module-stringprep "stringprep: String preparation, as per RFC 3453") --- Internet String Preparation **Source code:** [Lib/stringprep.py](https://github.com/python/cpython/tree/3.7/Lib/stringprep.py) \[https://github.com/python/cpython/tree/3.7/Lib/stringprep.py\] - - - - - - When identifying things (such as host names) in the internet, it is often necessary to compare such identifications for "equality". Exactly how this comparison is executed may depend on the application domain, e.g. whether it should be case-insensitive or not. It may be also necessary to restrict the possible identifications, to allow only identifications consisting of "printable" characters. [**RFC 3454**](https://tools.ietf.org/html/rfc3454.html) \[https://tools.ietf.org/html/rfc3454.html\] defines a procedure for "preparing" Unicode strings in internet protocols. Before passing strings onto the wire, they are processed with the preparation procedure, after which they have a certain normalized form. The RFC defines a set of tables, which can be combined into profiles. Each profile must define which tables it uses, and what other optional parts of the `stringprep`procedure are part of the profile. One example of a `stringprep` profile is `nameprep`, which is used for internationalized domain names. The module [`stringprep`](#module-stringprep "stringprep: String preparation, as per RFC 3453") only exposes the tables from [**RFC 3454**](https://tools.ietf.org/html/rfc3454.html) \[https://tools.ietf.org/html/rfc3454.html\]. As these tables would be very large to represent them as dictionaries or lists, the module uses the Unicode character database internally. The module source code itself was generated using the `mkstringprep.py` utility. As a result, these tables are exposed as functions, not as data structures. There are two kinds of tables in the RFC: sets and mappings. For a set, [`stringprep`](#module-stringprep "stringprep: String preparation, as per RFC 3453") provides the "characteristic function", i.e. a function that returns true if the parameter is part of the set. For mappings, it provides the mapping function: given the key, it returns the associated value. Below is a list of all functions available in the module. `stringprep.``in_table_a1`(*code*)Determine whether *code* is in tableA.1 (Unassigned code points in Unicode 3.2). `stringprep.``in_table_b1`(*code*)Determine whether *code* is in tableB.1 (Commonly mapped to nothing). `stringprep.``map_table_b2`(*code*)Return the mapped value for *code* according to tableB.2 (Mapping for case-folding used with NFKC). `stringprep.``map_table_b3`(*code*)Return the mapped value for *code* according to tableB.3 (Mapping for case-folding used with no normalization). `stringprep.``in_table_c11`(*code*)Determine whether *code* is in tableC.1.1 (ASCII space characters). `stringprep.``in_table_c12`(*code*)Determine whether *code* is in tableC.1.2 (Non-ASCII space characters). `stringprep.``in_table_c11_c12`(*code*)Determine whether *code* is in tableC.1 (Space characters, union of C.1.1 and C.1.2). `stringprep.``in_table_c21`(*code*)Determine whether *code* is in tableC.2.1 (ASCII control characters). `stringprep.``in_table_c22`(*code*)Determine whether *code* is in tableC.2.2 (Non-ASCII control characters). `stringprep.``in_table_c21_c22`(*code*)Determine whether *code* is in tableC.2 (Control characters, union of C.2.1 and C.2.2). `stringprep.``in_table_c3`(*code*)Determine whether *code* is in tableC.3 (Private use). `stringprep.``in_table_c4`(*code*)Determine whether *code* is in tableC.4 (Non-character code points). `stringprep.``in_table_c5`(*code*)Determine whether *code* is in tableC.5 (Surrogate codes). `stringprep.``in_table_c6`(*code*)Determine whether *code* is in tableC.6 (Inappropriate for plain text). `stringprep.``in_table_c7`(*code*)Determine whether *code* is in tableC.7 (Inappropriate for canonical representation). `stringprep.``in_table_c8`(*code*)Determine whether *code* is in tableC.8 (Change display properties or are deprecated). `stringprep.``in_table_c9`(*code*)Determine whether *code* is in tableC.9 (Tagging characters). `stringprep.``in_table_d1`(*code*)Determine whether *code* is in tableD.1 (Characters with bidirectional property "R" or "AL"). `stringprep.``in_table_d2`(*code*)Determine whether *code* is in tableD.2 (Characters with bidirectional property "L"). ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](readline.xhtml "readline --- GNU readline interface") | - [上一頁](unicodedata.xhtml "unicodedata --- Unicode 數據庫") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - [Python 標準庫](index.xhtml) ? - [文本處理服務](text.xhtml) ? - $('.inline-search').show(0); | ? [版權所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 軟件基金會是一個非盈利組織。 [請捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [發現了問題](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 創建。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看