mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	new unicodedata functions (name, lookup)
This commit is contained in:
		
							parent
							
								
									42e655908a
								
							
						
					
					
						commit
						0110d3b2ad
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		| 
						 | 
					@ -21,6 +21,19 @@ UnicodeData File Format 3.0.0 (see
 | 
				
			||||||
\url{http://www.unicode.org/Public/UNIDATA/UnicodeData.html}).  It
 | 
					\url{http://www.unicode.org/Public/UNIDATA/UnicodeData.html}).  It
 | 
				
			||||||
defines the following functions:
 | 
					defines the following functions:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\begin{funcdesc}{lookup}{name}
 | 
				
			||||||
 | 
					  Look up character by name.  If a character with the
 | 
				
			||||||
 | 
					  given name is found, return the corresponding Unicode
 | 
				
			||||||
 | 
					  character.  If not found, \exception{KeyError} is raised.
 | 
				
			||||||
 | 
					\end{funcdesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					\begin{funcdesc}{name}{unichr\optional{, default}}
 | 
				
			||||||
 | 
					  Returns the name assigned to the Unicode character
 | 
				
			||||||
 | 
					  \var{unichr} as a string. If no name is defined,
 | 
				
			||||||
 | 
					  \var{default} is returned, or, if not given,
 | 
				
			||||||
 | 
					  \exception{ValueError} is raised.
 | 
				
			||||||
 | 
					\end{funcdesc}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\begin{funcdesc}{decimal}{unichr\optional{, default}}
 | 
					\begin{funcdesc}{decimal}{unichr\optional{, default}}
 | 
				
			||||||
  Returns the decimal value assigned to the Unicode character
 | 
					  Returns the decimal value assigned to the Unicode character
 | 
				
			||||||
  \var{unichr} as integer. If no such value is defined,
 | 
					  \var{unichr} as integer. If no such value is defined,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue