Edit

kc3-lang/libxkbcommon/src/utf8.h

Branch :

  • Show log

    Commit

  • Author : Ran Benita
    Date : 2025-01-25 03:18:01
    Hash : 113ac304
    Message : meson: link tests and benches against shared library, not static library This makes the tests, and especially benches, more realistic, since xkbcommon is almost always used as a shared library. Also significantly reduces the build time with LTO enabled (for me, from 90s to 30s). Signed-off-by: Ran Benita <ran@unusedvar.com>

  • src/utf8.h
  • /*
     * Copyright © 2012 Intel Corporation
     * Copyright © 2014 Ran Benita <ran234@gmail.com>
     * SPDX-License-Identifier: MIT
     *
     * Author: Rob Bradford <rob@linux.intel.com>
     */
    #pragma once
    
    #include <stdbool.h>
    #include <stddef.h>
    #include <stdint.h>
    
    #include "utils.h"
    
    XKB_EXPORT_PRIVATE int
    utf32_to_utf8(uint32_t unichar, char *buffer);
    
    XKB_EXPORT_PRIVATE bool
    is_valid_utf8(const char *ss, size_t len);