Home | History | Annotate | Download | only in unicode

Lines Matching refs:category

157 var category = map[string]bool{
217 category string
273 char.category = field[FGeneralCategory]
274 category[char.category] = true
275 switch char.category {
327 a := make([]string, 0, len(category))
328 for k := range category {
367 category := chars[code].category
368 return len(category) > 0 && category[0] == class
473 println("// Categories is the set of Unicode category tables.")
484 if _, ok := category[name]; !ok {
485 logger.Fatal("unknown category", name)
494 varDecl = "\tOther = _C; // Other/C is the set of Unicode control and special characters, category C.\n"
497 varDecl = "\tLetter = _L; // Letter/L is the set of Unicode letters, category L.\n"
500 varDecl = "\tMark = _M; // Mark/M is the set of Unicode mark characters, category M.\n"
503 varDecl = "\tNumber = _N; // Number/N is the set of Unicode number characters, category N.\n"
506 varDecl = "\tPunct = _P; // Punct/P is the set of Unicode punctuation characters, category P.\n"
509 varDecl = "\tSymbol = _S; // Symbol/S is the set of Unicode symbol characters, category S.\n"
512 varDecl = "\tSpace = _Z; // Space/Z is the set of Unicode space characters, category Z.\n"
525 "\t%s = _%s; // %s is the set of Unicode characters in category %s.\n",
539 func(code rune) bool { return chars[code].category == name })
641 if _, ok := category[name]; !ok {
642 logger.Fatal("unknown category", name)
653 func(code rune) bool { return chars[code].category == name },
1097 switch chars[code].category {
1098 case "Cc", "": // NUL has no category.
1100 case "Cf": // soft hyphen, unique category, not printable.
1117 logger.Fatalf("%U has unknown category %q", code, chars[code].category)
1191 // Tables of category and script folding exceptions: code points
1192 // that must be added when interpreting a particular category/script
1195 for name := range category {
1212 // inCategory returns a list of all the runes in the category.
1218 if c.category == name || len(name) == 1 && len(c.category) > 1 && c.category[0] == name[0] {
1275 "FoldCategory": "// FoldCategory maps a category name to a table of\n" +
1276 "// code points outside the category that are equivalent under\n" +
1277 "// simple case folding to code points inside the category.\n" +
1278 "// If there is no entry for a category name, there are no such points.\n",