Module pyparsing :: Class unicode_set
[hide private]
[frames] | no frames]

Class unicode_set

source code

object --+
         |
        unicode_set
Known Subclasses:

A set of Unicode characters, for language-specific strings for ``alphas``, ``nums``, ``alphanums``, and ``printables``. A unicode_set is defined by a list of ranges in the Unicode character set, in a class attribute ``_ranges``, such as:

   _ranges = [(0x0020, 0x007e), (0x00a0, 0x00ff),]

A unicode set can also be defined using multiple inheritance of other unicode sets:

   class CJK(Chinese, Japanese, Korean):
       pass
Instance Methods [hide private]
 
printables(cls)
all non-whitespace characters in this range
source code
 
alphas(cls)
all alphabetic characters in this range
source code
 
nums(cls)
all numeric digit characters in this range
source code
 
alphanums(cls)
all alphanumeric characters in this range
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
_get_chars_for_ranges(cls) source code
Class Variables [hide private]
  _ranges = []
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

printables(cls)

source code 

all non-whitespace characters in this range

Decorators:
  • @_lazyclassproperty

alphas(cls)

source code 

all alphabetic characters in this range

Decorators:
  • @_lazyclassproperty

nums(cls)

source code 

all numeric digit characters in this range

Decorators:
  • @_lazyclassproperty

alphanums(cls)

source code 

all alphanumeric characters in this range

Decorators:
  • @_lazyclassproperty