Edit

kc3-lang/libxkbcommon/src/utf8.h

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2025-07-07 12:28:24
    Hash : dc63e5f8
    Message : Ensure config.h is always included first While `config.h` may not be necessary in every file, it ensures consistency and makes code refactoring safer.

  • 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 "config.h"
    
    #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);