⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mt_string.h

📁 展讯平台的mtue源代码, 全面,精简,仅供学习, 商用后果自负
💻 H
字号:
/*****************************************************************************
** File Name:                                                                *
** Author:                                                                   *
** Date:           2007/05/02                                                *
** Copyright:      2007 MTONE, Inc. All Rights Reserved.                     *
** Description:                                                              *
******************************************************************************
**                         Important Edit History                            *
** --------------------------------------------------------------------------*
** DATE           NAME             DESCRIPTION                               *
** 2007/05/02                      Create                                    *
*****************************************************************************/

#ifndef _MT_STRING_H_
#define _MT_STRING_H_

#ifdef __cplusplus
    extern   "C"
    {
#endif

#include "sci_types.h"

uint32  mt_wcslen( const uint16 *str );
   int  mt_strnicmp( const char *string1, const char *string2, uint32 count );
  char *mt_stristr( const char *string, const char *strCharSet );
 uint8 *mt_bufstr( const uint8 *buf, uint32 len, const char *str );

#define MT_FILE_SUFFIX_LEN_MAX 4

  void  mt_splitpath( const char *szpath_ptr, char *szdir_ptr, uint16 szdir_size, char *szfile_ptr, uint16 szfile_size );
  char *mt_mergepath( const char *szpath_in_ptr, const char *szpath_in2_ptr, char *szpath_out_ptr, uint16 szpath_out_size );
  char *mt_getsuffix( const char *szfile_ptr );

  void  MTLRC_Filt( char *str, uint16 *len );
uint16  MTGB_GetTokenLength( const char *str, uint16 len );
  char *MTGB_Trim( const char *str, uint16 *len );
  char *MTGB_StrChr( const char *str, uint16 len, uint8 c );

 uint32 MT_UCS2TOUTF8(   const uint16 *szucs2_ptr, uint8 *szutf8_ptr, uint16 szutf8_size );
 uint16 MT_UTF8TOUCS2(   const uint8 *szutf8_ptr, uint16 *szucs2_ptr, uint16 szucs2_size );
 uint16 MT_UTF8TOUCS2N(  const uint8 *szutf8_ptr, uint16 szutf8_len, uint16 *szucs2_ptr, uint16 szucs2_size );

 uint32 MT_URLEscStr(    const uint8 *szin_ptr, char *szout_ptr, uint16 szout_size, BOOLEAN escfareastlang );
BOOLEAN MT_XMLUnEscStr(  const uint8 *szin_ptr, uint8 *szout_ptr, uint16 szout_size, uint16 *szout_len );
BOOLEAN MT_XMLUnEscStrN( const uint8 *in_ptr, uint16 in_len, uint8 *szout_ptr, uint16 szout_size, uint16 *szout_len );

const uint8 *MT_XMLFindTag( const uint8 *xml_ptr, uint16 xml_len, const uint8 *sztagname_ptr, uint16 *tag_len );
const uint8 *MT_XMLGetAttr( const uint8 *xml_ptr, uint16 xml_len, const uint8 *szattrname_ptr, uint16 *attrval_len );
    BOOLEAN MT_WMLGetHref( const uint8 *wml_ptr, uint16 wml_len, uint8 i, BOOLEAN *referer, char *szurl_ptr, uint16 szurl_size, uint8 *post_ptr, uint16 post_size, uint16 *post_len );

#ifdef __cplusplus
    }
#endif

#endif // _MT_STRING_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -