예제 #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
예제 #2
0
파일: string.py 프로젝트: cheery/lever
def is_alpha(string):
    for ch in string.string:
        if not unicodedb.isalpha(ord(ch)):
            return space.false
    return space.true
예제 #3
0
파일: string.py 프로젝트: vishesh/pycket
def char_alphabetic_huh(w_char):
    c = ord(w_char.value)
    return values.w_true if unicodedb.isalpha(c) else values.w_false
예제 #4
0
 def is_sym(self):
     if self.filled:
         ch = self.current
         return unicodedb.isalpha(ord(ch)) or ch == '_'
     return False
예제 #5
0
 def is_sym(self):
     if self.filled:
         ch = self.current
         return unicodedb.isalpha(ord(ch)) or ch == '_'
     return False
예제 #6
0
파일: string.py 프로젝트: 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