Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (11 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/charset.c

    r2819 r2821  
    11/*
    2  *  libcucul      Canvas for ultrafast compositing of Unicode letters
     2 *  libcaca       Colour ASCII-Art library
    33 *  Copyright (c) 2002-2007 Sam Hocevar <sam@zoy.org>
    44 *                2007 Ben Wiley Sittler <bsittler@gmail.com>
     
    2525#endif
    2626
    27 #include "cucul.h"
    28 #include "cucul_internals.h"
     27#include "caca.h"
     28#include "caca_internals.h"
    2929
    3030/*
     
    112112 *  is incomplete.
    113113 */
    114 uint32_t cucul_utf8_to_utf32(char const *s, size_t *bytes)
     114uint32_t caca_utf8_to_utf32(char const *s, size_t *bytes)
    115115{
    116116    int todo = trailing[(int)(unsigned char)*s];
     
    151151 *  \return The number of bytes written.
    152152 */
    153 size_t cucul_utf32_to_utf8(char *buf, uint32_t ch)
     153size_t caca_utf32_to_utf8(char *buf, uint32_t ch)
    154154{
    155155    static const uint8_t mark[7] =
     
    191191 *  \return The corresponding CP437 character, or "?" if not representable.
    192192 */
    193 uint8_t cucul_utf32_to_cp437(uint32_t ch)
     193uint8_t caca_utf32_to_cp437(uint32_t ch)
    194194{
    195195    unsigned int i;
     
    223223 *  \return The corresponding UTF-32 character, or zero if not representable.
    224224 */
    225 uint32_t cucul_cp437_to_utf32(uint8_t ch)
     225uint32_t caca_cp437_to_utf32(uint8_t ch)
    226226{
    227227    if(ch > 0x7f)
     
    249249 *  equivalent if found, or "?" if not representable.
    250250 */
    251 char cucul_utf32_to_ascii(uint32_t ch)
     251char caca_utf32_to_ascii(uint32_t ch)
    252252{
    253253    /* Standard ASCII */
     
    388388 *  \return 1 if the character is fullwidth, 0 otherwise.
    389389 */
    390 int cucul_utf32_is_fullwidth(uint32_t ch)
     390int caca_utf32_is_fullwidth(uint32_t ch)
    391391{
    392392    if(ch < 0x2e80) /* Standard stuff */
Note: See TracChangeset for help on using the changeset viewer.