📄 mystring.hpp
字号:
/**************************************************************************/
/* Copyright(C) 2001 by Nanjing XINWANG TEC CO.,LTD. */
/**************************************************************************/
/* Name: mystring.hpp Version: 1.0.0 */
/* Created by: Zhangbo Date: 2001-12-04 */
/* Content: declare of self-defined string functions */
/* Comment: */
/* Modified: */
/**************************************************************************/
#ifndef _MYSTRING_HPP_
#define _MYSTRING_HPP_
//Comment: trim left spaces of string
//Parameter: string need trimmed
//ReturnValue: the pointer which points to trimmed string
char* TrimLeft(char* string);
//Comment: trim right spaces of string
//Parameter: string need trimmed
//ReturnValue: the pointer which points to trimmed string
char* TrimRight(char* string);
//Comment: trim both left and right spaces of string
//Parameter: string need trimmed
//ReturnValue: the pointer which points to trimmed string
char* TrimLeftRight(char* string);
//Comment: trim all spaces in string
//Parameter: string need trimmed
//ReturnValue: the pointer which points to trimmed string
char* TrimAll(char* string);
//分析输入参数
void ParseParameter(char* sPara,char *sPara1,char *sPara2,
char *sPara3,char *sPara4,char *sPara5);
/*---------------------------------------------------------*///hyl on 20030807
//Comment: replace 1885 as 01885
char* ReplaceString( char* str,const char* searchstr,const char* replacestr ) ;
//Comment: trim 01885 as 1885
char* TrimLeftZero( char* str ) ;
//Comment: add 0 to the left of 1885 as 01885
char* AddLeftZero( char* str ) ;
/*---------------------------------------------------------*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -