Ejemplo n.º 1
0
def String_is_alpha(string):
    for ch in string.string:
        if not unicodedb.isalpha(ord(ch)):
            return space.false
    if len(string.string) == 0:
        return space.false
    return space.true
Ejemplo n.º 2
0
def is_alpha(string):
    for ch in string.string:
        if not unicodedb.isalpha(ord(ch)):
            return space.false
    return space.true
Ejemplo n.º 3
0
def char_alphabetic_huh(w_char):
    c = ord(w_char.value)
    return values.w_true if unicodedb.isalpha(c) else values.w_false
Ejemplo n.º 4
0
 def is_sym(self):
     if self.filled:
         ch = self.current
         return unicodedb.isalpha(ord(ch)) or ch == '_'
     return False
Ejemplo n.º 5
0
 def is_sym(self):
     if self.filled:
         ch = self.current
         return unicodedb.isalpha(ord(ch)) or ch == '_'
     return False
Ejemplo n.º 6
0
Archivo: string.py Proyecto: 8l/pycket
def char_alphabetic_huh(w_char):
    c = ord(w_char.value)
    return values.w_true if unicodedb.isalpha(c) else values.w_false