示例#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