Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# oscl_string_utf8.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00003
    00004 //               O S C L _ S T R I N G _ U T F 8
    00005
    00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00007
    00023 #ifndef OSCL_STRING_UTF8_H
    00024 #define OSCL_STRING_UTF8_H
    00025
    00026 // - - Inclusion - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    00027 #ifndef OSCL_BASE_H_INCLUDED
    00028 #include "oscl_base.h"
    00029 #endif
    00030
    00031 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    00032 // Function prototypes
    00049 OSCL_IMPORT_REF  bool  oscl_str_is_valid_utf8(const uint8 *str_buf, uint32& num_valid_characters, uint32 max_bytes = 0,
    00050         uint32 max_char_2_valid = 0, uint32 * num_byte_4_char = NULL);
    00065 OSCL_IMPORT_REF int32  oscl_str_truncate_utf8(uint8 *str_buf, uint32 max_char, uint32 max_bytes = 0);
    00066
    00067 #endif
    00068