?? stringprocess.h
字號:
/*This file to define the data structures ,constants and functions
used in text information processing.
*/
#ifndef STR_PROC_H
#define STR_PROC_H
#include "CommonData.h"
/*The main structure to store the comments and other text information.
*/
//begin
typedef struct {
XML_Char* data;
int capacity;//the capacity of the structure.
int length;//the length of the valid data stored in structure
}XML_String;
typedef XML_String* PXML_String;// Pointer type of the structure XML_String
//end
/*The error enumaration inluding the errors which would provoke in running.*/
enum XML_STR_PRO_Error{
STRING_SUCCESS,
MEM_OUT,
INVALID_STR
};
/*Functions used processing the String.*/
PXML_String CreateXML_String();//Create a new XML_String with the capacity of STR_LENGTH
void FreeXML_String(PXML_String pXmlString);//Free the memory allocated to the variable with the type of 'XML_String'
enum XML_STR_PRO_Error XML_StrStrCat(PXML_String target, const PXML_String source);//Copy the data in source to target both with the type 'PXML_String'
enum XML_STR_PRO_Error XML_StrPCharCat(PXML_String target, const XML_Char* source);//Copy the source with type of 'const char *' into target with type of 'PXML_String'
int XML_StrPCharCmp(const PXML_String xmlStr, const XML_Char* str);
int XML_StrCmp(const PXML_String xmlStr1, const PXML_String xmlStr2);
void XML_ClearStr(PXML_String str);
enum XML_STR_PRO_Error XML_AddXMLChar(PXML_String str, const XML_Char character);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -