tstr_util.h.svn-base

来自「SumatraPDF是一款小型开源的pdf阅读工具。虽然玲珑小巧(只有800多K」· SVN-BASE 代码 · 共 51 行

SVN-BASE
51
字号
/* Written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
   The author disclaims copyright to this source code. */
#ifndef TSTR_UTIL_H_
#define TSTR_UTIL_H_

#ifdef _UNICODE
  #include "wstr_util.h"
  #define tstr_len      wcslen
  #define tstr_dup      wstr_dup
  #define tstr_dupn     wstr_dupn
  #define tstr_cat_s    wstr_cat_s
  #define tstr_catn_s   wstr_catn_s
  #define tstr_cat      wstr_cat
  #define tstr_cat3     wstr_cat3
  #define tstr_cat4     wstr_cat4
  #define tstr_copy     wstr_copy
  #define tstr_copyn    wstr_copyn
  #define tstr_startswith wstr_startswith
  #define tstr_startswithi wstr_startswithi
  #define tstr_url_encode wstr_url_encode
  #define tchar_needs_url_escape wchar_needs_url_escape
  #define tstr_contains wstr_contains
  #define tstr_printf   wstr_printf
  #define tstr_ieq      wstr_ieq
  #define tstr_empty    wstr_empty
  #define tstr_find_char wstr_find_char
#else
  #include "str_util.h"
  #define tstr_len      strlen
  #define tstr_dup      str_dup
  #define tstr_dupn     str_dupn
  #define tstr_cat_s    str_cat_s
  #define tstr_catn_s   str_catn_s
  #define tstr_cat      str_cat
  #define tstr_cat3     str_cat3
  #define tstr_cat4     str_cat4
  #define tstr_copy     str_copy
  #define tstr_copyn    str_copyn
  #define tstr_startswith str_startswith
  #define tstr_startswithi str_startswithi
  #define tstr_url_encode str_url_encode
  #define tchar_needs_url_escape char_needs_url_escape
  #define tstr_contains str_contains
  #define tstr_printf   str_printf
  #define tstr_ieq      str_ieq
  #define tstr_empty    str_empty
  #define tstr_find_char  str_find_char
#endif

#endif

⌨️ 快捷键说明

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