<HTML>
<HEAD>
<TITLE> String </TITLE>
</HEAD>
<BODY BGCOLOR="ffffcc">
<H1> String </H1>
<H4> Update Time 03/13/11---18:09:55 </H4>
<H2> Member function </H2>
<UL>
	<LI> stringGetFromFile
	<LI> stringGetNthWord
	<LI> stringGetNthRealData
	<LI> stringGetNthIntegerData
	<LI> stringIsSame
	<LI> stringLength
	<LI> stringCopy
</UL>
<HR>
<A NAME="Information">
<H2>Information from source codes</H2>
</A>
<PRE>
../src/stringGet.c:

../src/stringGetFromFile.c:

../src/stringIsSame.c:

../src/stringUtil.c:
</PRE>
<HR>
<A NAME="include">
<H2>String.h</H2>
</A>
<PRE>
#ifndef STRING_H
#define STRING_H
#include <stdio.h>

/* constant begin */
#define STRING_MAX_LENGTH (8192)
#define STRING_WORD_SEPARATOR  " ,\t" 
#define STRING_COMMENT_LINE_ID '#' 
/* constant end */

/* struct begin */
typedef char*         String;
typedef unsigned long stringParaTypeInteger;
typedef float         stringParaTypeReal;
/* struct end */

#ifdef __cplusplus
extern "C" {
#endif

/* prototype begin */
extern void stringInit(String s, char* message);

/*
	mode&0x01 := 0: quary   1: no quary
	mode&0x02 := 0: message 1: no message
*/
extern String stringGetFromFile(char* s, char* message, FILE* fptIn, FILE* fptOut, long mode);
extern String stringGetFromFileWithSkippingComment(char* s, char* message, FILE* fptIn, FILE* fptOut, long mode);
extern char* __getStringData(char* s, char* message, FILE* fptIn, FILE* fptOut, long mode);

extern String stringGetNthWord(char* s, long nth, char* exception);
extern double stringGetNthRealData(char* s, long nth, char* exception);
extern long   stringGetNthIntegerData(char* s, long nth, char* exception);

extern String stringGetWordFromField(char* s, long init, long end);
extern double stringGetRealDataFromField(char* s, long init, long end);
extern long   stringGetIntegerDataFromField(char* s, long init, long end);

extern long stringIsSame(String s1, String s2, long n);

extern long stringLength(String s);
extern long stringCopy(String dst, String src, long n);
extern String stringDuplicate(String src);

/* prototype end */

#ifdef __cplusplus
};
#endif

#endif /* STRING_H */
</PRE>
</BODY>
</HTML>
