WTF
UnicodeCategory.h
Go to the documentation of this file.00001 // -*- c-basic-offset: 2 -*- 00002 /* 00003 * This file is part of the KDE libraries 00004 * Copyright (C) 2006 George Staikos <staikos@kde.org> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public License 00017 * along with this library; see the file COPYING.LIB. If not, write to 00018 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 * Boston, MA 02110-1301, USA. 00020 * 00021 */ 00022 00023 #ifndef KJS_UNICODE_CATEGORY_H 00024 #define KJS_UNICODE_CATEGORY_H 00025 00026 namespace WTF { 00027 namespace Unicode { 00028 enum CharCategory { 00029 NoCategory = 0, 00030 Mark_NonSpacing = 0x00000001, // Unicode class name Mn 00031 Mark_SpacingCombining = 0x00000002, // Unicode class name Mc 00032 Mark_Enclosing = 0x00000004, // Unicode class name Me 00033 Number_DecimalDigit = 0x00000008, // Unicode class name Nd 00034 Number_Letter = 0x00000010, // Unicode class name Nl 00035 Number_Other = 0x00000020, // Unicode class name No 00036 Separator_Space = 0x00000040, // Unicode class name Zs 00037 Separator_Line = 0x00000080, // Unicode class name Zl 00038 Separator_Paragraph = 0x00000100, // Unicode class name Zp 00039 Other_Control = 0x00000200, // Unicode class name Cc 00040 Other_Format = 0x00000400, // Unicode class name Cf 00041 Other_Surrogate = 0x00000800, // Unicode class name Cs 00042 Other_PrivateUse = 0x00001000, // Unicode class name Co 00043 Other_NotAssigned = 0x00002000, // Unicode class name Cn 00044 Letter_Uppercase = 0x00004000, // Unicode class name Lu 00045 Letter_Lowercase = 0x00008000, // Unicode class name Ll 00046 Letter_Titlecase = 0x00010000, // Unicode class name Lt 00047 Letter_Modifier = 0x00020000, // Unicode class name Lm 00048 Letter_Other = 0x00040000, // Unicode class name Lo 00049 Punctuation_Connector = 0x00080000, // Unicode class name Pc 00050 Punctuation_Dash = 0x00100000, // Unicode class name Pd 00051 Punctuation_Open = 0x00200000, // Unicode class name Ps 00052 Punctuation_Close = 0x00400000, // Unicode class name Pe 00053 Punctuation_InitialQuote = 0x00800000, // Unicode class name Pi 00054 Punctuation_FinalQuote = 0x01000000, // Unicode class name Pf 00055 Punctuation_Other = 0x02000000, // Unicode class name Po 00056 Symbol_Math = 0x04000000, // Unicode class name Sm 00057 Symbol_Currency = 0x08000000, // Unicode class name Sc 00058 Symbol_Modifier = 0x10000000, // Unicode class name Sk 00059 Symbol_Other = 0x20000000 // Unicode class name So 00060 }; 00061 } 00062 } 00063 00064 #endif 00065 // vim: ts=2 sw=2 et