/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/* > unictype.h */

/**************************************************************************/
/*                                                                        */
/* Copyright [1997-2003] All rights reserved.                             */
/*                                                                        */
/* This file may be included in profit making or non profit making        */
/* software on any system running any version of RISC OS, provided it was */
/* used along with a licensed binary of Unicode Lib                       */
/* It is supplied "as is" without warranty, express or implied, of        */
/* merchantability for any purpose.                                       */
/* No liability can be claimed for any direct or indirect loss            */
/**************************************************************************/

/*
 * Unicode character type definitions and prototypes
 */

#ifndef unicode_unictype_h
#define unicode_unictype_h

#include "iso10646.h"

#define unictype_UNKNOWN		0
#define unictype_SEPARATOR_SPACE	1
#define unictype_SEPARATOR_PARA		2
#define unictype_PUNCTUATION_OPEN	3
#define unictype_PUNCTUATION_CLOSE	4
#define unictype_PUNCTUATION_DASH	5
#define unictype_LETTER			6
#define unictype_NUMBER			7
#define unictype_SYMBOL			8
#define unictype_OTHER			9
#define unictype_MARK			10

/* Return whether the given character is ideographic */

extern int unictype_is_ideograph(UCS2 u);

/* Pass in a UC2 character and return a character type as given above */

extern int unictype_lookup(UCS2 c);

/* This function must be called before using unictype_lookup() to
 * initialise the pointers */

extern void unictype_init(void);

#endif

/* eof unictype.h */

