1 /* 2 * Copyright 2006-2008 The FLWOR Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 #pragma once 17 #ifndef ZORBA_XML_CHAR_TYPE 18 #define ZORBA_XML_CHAR_TYPE 19 20 #include <zorba/config.h> 21 #include "common/common.h" 22 23 namespace zorba{ 24 25 class XQCharType 26 { 27 public: 28 static bool isLetter(uint32_t cp); 29 static bool isBaseChar(uint32_t cp); 30 static bool isIdeographic(uint32_t cp); 31 static bool isDigit(uint32_t cp); 32 static bool isCombiningChar(uint32_t cp); 33 static bool isExtender(uint32_t cp); 34 static bool isNameChar(uint32_t cp); 35 }; 36 37 }//end namespace zorba 38 #endif 39 /* vim:set et sw=2 ts=2: */ 40