当前位置:网站首页>Yyds dry goods inventory stringprep --- Internet string preparation
Yyds dry goods inventory stringprep --- Internet string preparation
2022-04-23 18:48:00 【D starling roll】
Identifying things on the Internet ( For example, host name ), It is often necessary to compare whether these marks are ( equal ). The specific implementation of this comparison may depend on the application domain , For example, whether to be case sensitive, etc . Sometimes it may be necessary to limit the allowed identification to only “ Printable ” Character composition .
RFC 3454 Defined in the internet protocol Unicode A string of “ get set ” The process . Before the string is wired for transmission , They will be processed first using the preparatory process , Then they will have a specific standard form . The RFC Defines a series of tables , They can be combined into option configurations . Each configuration must define the table used ,stringprep
Other options for the process are also part of the configuration . stringprep
An example of configuration is nameprep
, It is used to internationalize domain names . modular stringprep
Only from RFC 3454 Table for . Because if these tables are represented as dictionaries or lists, they will be very large , The module is used internally Unicode Character database . The source code of the module itself is mkstringprep.py
Tool generated . therefore , These tables are exposed as functions rather than data structures . stay RFC There are two kinds of tables in : Set and map . For collection ,stringprep
Provides “ The characteristic function ”, That is, if the formal parameter is part of the set, the return value is True
Function of . For mapping , It provides mapping functions : It will return the associated value according to the given key . The following is a list of all available functions in the module .stringprep.
in_table_a1
(code)
determine code Whether to belong to tableA.1 (Unicode 3.2 Unallocated code points in ).
stringprep.
in_table_b1
(code)
determine code Whether to belong to tableB.1 ( Usually mapped to null values ).
stringprep.
map_table_b2
(code)
return code basis tableB.2 ( coordination NFKC Use case conversion mapping ) Mapped values .
stringprep.
map_table_b3
(code)
return code basis tableB.3 ( Case collapse mapping without normalization ) Mapped values .
stringprep.
in_table_c11
(code)
determine code Whether to belong to tableC.1.1 (ASCII Blank character ).
stringprep.
in_table_c12
(code)
determine code Whether to belong to tableC.1.2 ( Not ASCII Blank character ).
stringprep.
in_table_c11_c12
(code)
determine code Whether to belong to tableC.1 ( Blank character ,C.1.1 and C.1.2 Union ).
stringprep.
in_table_c21
(code)
determine code Whether to belong to tableC.2.1 (ASCII Control characters ).
stringprep.
in_table_c22
(code)
determine code Whether to belong to tableC.2.2 ( Not ASCII Control characters ).
stringprep.
in_table_c21_c22
(code)
determine code Whether to belong to tableC.2 ( Control characters ,C.2.1 and C.2.2 Union ).
stringprep.
in_table_c3
(code)
determine code Whether to belong to tableC.3 ( Private use ).
stringprep.
in_table_c4
(code)
determine code Whether to belong to tableC.4 ( Non character code point ).
stringprep.
in_table_c5
(code)
determine code Whether to belong to tableC.5 ( Substitute code ).
stringprep.
in_table_c6
(code)
determine code Whether to belong to tableC.6 ( Not applicable to plain text ).
stringprep.
in_table_c7
(code)
determine code Whether to belong to tableC.7 ( Not applicable to the specification representation ).
stringprep.
in_table_c8
(code)
determine code Whether to belong to tableC.8 ( Changed display properties or deprecated ).
stringprep.
in_table_c9
(code)
determine code Whether to belong to tableC.9 ( Mark characters ).
stringprep.
in_table_d1
(code)
determine code Whether to belong to tableD.1 ( With bidirectional properties "R" or "AL" The characters of ).
stringprep.
in_table_d2
(code)
determine code Whether to belong to tableD.2 ( With bidirectional properties "L" The characters of ).
版权声明
本文为[D starling roll]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231823467372.html
边栏推荐
- About the operation of unit file reading (I)
- 解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
- Chondroitin sulfate in vitreous
- iptables -L执行缓慢
- PyGame tank battle
- Machine learning practice - naive Bayes
- CANopen STM32 transplantation
- Résolution: cnpm: impossible de charger le fichier... Cnpm. PS1 parce que l'exécution de scripts est désactivée sur ce système
- Machine learning theory (7): kernel function kernels -- a way to help SVM realize nonlinear decision boundary
- ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
猜你喜欢
STM32: LCD显示
解决:cnpm : 無法加載文件 ...\cnpm.ps1,因為在此系統上禁止運行脚本
After opening the original normal project, the dependency package displays red and does not exist.
Halo open source project learning (VII): caching mechanism
ESP32 LVGL8. 1 - calendar (calendar 25)
七、DOM(下) - 章节课后练习题及答案
ESP32 LVGL8. 1 - img picture (IMG 20)
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
Use bitnami / PostgreSQL repmgr image to quickly set up PostgreSQL ha
Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
随机推荐
Daily CISSP certification common mistakes (April 11, 2022)
ESP32 LVGL8. 1 - event (event 17)
Ctfshow - web362 (ssti)
Daily CISSP certification common mistakes (April 13, 2022)
How to virtualize the video frame and background is realized in a few simple steps
Daily network security certification test questions (April 14, 2022)
Practice of Druid SQL and security in meituan review
Golang 语言实现TCP UDP通信
Daily CISSP certification common mistakes (April 12, 2022)
STM32: LCD display
Usage of functions decode() and replace() in SQL
Screenshot using projectmediamanager
关于unity文件读取的操作(一)
Druid SQL和Security在美团点评的实践
CANopen usage method and main parameters of object dictionary
ctfshow-web362(SSTI)
配置iptables
Kettle paoding jieniu Chapter 17 text file output
Machine learning theory (8): model integration ensemble learning
ESP32 LVGL8. 1 - checkbox (checkbox 23)