Edit

kc3-lang/libxkbcommon/src/utf8.h

Branch :

  • Show log

    Commit

  • Author : Ran Benita
    Date : 2025-01-29 15:35:22
    Hash : e120807b
    Message : Update license notices to SDPX short identifiers + update LICENSE Fix #628. 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>
     */
    
    #ifndef XKBCOMMON_UTF8_H
    #define XKBCOMMON_UTF8_H
    
    #include <stdbool.h>
    #include <stddef.h>
    #include <stdint.h>
    
    int
    utf32_to_utf8(uint32_t unichar, char *buffer);
    
    bool
    is_valid_utf8(const char *ss, size_t len);
    
    #endif