gnunet-android

GNUnet for Android
Log | Files | Refs | README

uniname.h (1985B)


      1 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
      2 /* Association between Unicode characters and their names.
      3    Copyright (C) 2000-2002, 2005, 2007, 2009-2024 Free Software Foundation,
      4    Inc.
      5 
      6    This file is free software.
      7    It is dual-licensed under "the GNU LGPLv3+ or the GNU GPLv2+".
      8    You can redistribute it and/or modify it under either
      9      - the terms of the GNU Lesser General Public License as published
     10        by the Free Software Foundation, either version 3, or (at your
     11        option) any later version, or
     12      - the terms of the GNU General Public License as published by the
     13        Free Software Foundation; either version 2, or (at your option)
     14        any later version, or
     15      - the same dual license "the GNU LGPLv3+ or the GNU GPLv2+".
     16 
     17    This file is distributed in the hope that it will be useful,
     18    but WITHOUT ANY WARRANTY; without even the implied warranty of
     19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     20    Lesser General Public License and the GNU General Public License
     21    for more details.
     22 
     23    You should have received a copy of the GNU Lesser General Public
     24    License and of the GNU General Public License along with this
     25    program.  If not, see <https://www.gnu.org/licenses/>.  */
     26 
     27 #ifndef _UNINAME_H
     28 #define _UNINAME_H
     29 
     30 #include "unitypes.h"
     31 
     32 #ifdef __cplusplus
     33 extern "C" {
     34 #endif
     35 
     36 /* Required size of buffer for a Unicode character name.  */
     37 #define UNINAME_MAX 256
     38 
     39 /* Looks up the name of a Unicode character, in uppercase ASCII.
     40    Returns the filled buf, or NULL if the character does not have a name.  */
     41 extern char *
     42        unicode_character_name (ucs4_t uc, char *buf);
     43 
     44 /* Looks up the Unicode character with a given name, in upper- or lowercase
     45    ASCII.  Returns the character if found, or UNINAME_INVALID if not found.  */
     46 extern ucs4_t
     47        unicode_name_character (const char *name)
     48        _UC_ATTRIBUTE_PURE;
     49 #define UNINAME_INVALID ((ucs4_t) 0xFFFF)
     50 
     51 #ifdef __cplusplus
     52 }
     53 #endif
     54 
     55 #endif /* _UNINAME_H */