锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品成人精品久久久,一本一本久久A久久综合精品,久久本道久久综合伊人http://m.shnenglu.com/dyj057/archive/2008/05/09/38074.html#49295wuxunfengwuxunfengFri, 09 May 2008 05:05:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/05/09/38074.html#49295鏈変釜闂鎯抽棶涓涓嬨傚鏋?INI鏂囦歡涓紝鍚屼竴涓猄ECTION涓紝鏈夊嚑涓悓鏍風殑KEY錛岄偅涔堣鍙栫殑鏃跺欙紝浼氳鍙栧摢涓狵EY鍛紝鍙互寰幆璇誨彇鍚?渚嬶細
[SECTION]
key=data
key=data
key=data
key1=data2
]]>- 鍑芥暟搴撴湁榪欎釜鍔熻兘鍚楋紵http://m.shnenglu.com/dyj057/archive/2008/05/09/3012.html#49294wuxunfengwuxunfengFri, 09 May 2008 05:03:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/05/09/3012.html#49294 鏈変釜闂鎯抽棶涓涓嬨傚鏋?INI鏂囦歡涓紝鍚屼竴涓猄ECTION涓紝鏈夊嚑涓悓鏍風殑KEY錛岄偅涔堣鍙栫殑鏃跺欙紝浼氳鍙栧摢涓狵EY鍛紝鍙互寰幆璇誨彇鍚?渚嬶細
[SECTION]
key=data
key=data
key=data
key1=data2
]]> - re: 鍙戝竷璺ㄥ鉤鍙癐NI鏂囦歡璇誨啓API(C++鐗堟湰) V0.2.1http://m.shnenglu.com/dyj057/archive/2008/04/26/38074.html#48189luoweiliuzluoweiliuzSat, 26 Apr 2008 08:09:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/04/26/38074.html#48189[name]
Row1=J ???????琚ぇ10 鐨勬浛鎹?
Row2=B
Row3=C
Row4=D
Row5=E
Row6=F
Row7=G
Row8=H
Row9=I
Row10=J ???????榪欎釜鍦版柟寮濮嬩互鍚庢病鏈夎緭鍑猴紝浣嗘槸瑕嗙洊浜?Row1 鐨勫?
Row11=K

]]> - re: C++瀹岀編瀹炵幇Singleton妯″紡http://m.shnenglu.com/dyj057/archive/2008/03/25/346.html#45384kendankendanTue, 25 Mar 2008 12:33:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/03/25/346.html#45384
]]> - re: 鍙戝竷璺ㄥ鉤鍙癐NI鏂囦歡璇誨啓API(C++鐗堟湰) V0.2.1http://m.shnenglu.com/dyj057/archive/2008/03/25/38074.html#45348璞嗚姳楸肩墖璞嗚姳楸肩墖Tue, 25 Mar 2008 07:03:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/03/25/38074.html#45348
int IniFile::parse_file(const char *section, const char *key, const char *buf,int *sec_s,int *sec_e,
int *key_s,int *key_e, int *value_s, int *value_e)
{
const char *p = buf;
int i=0;
assert(buf!=NULL);
assert(section != NULL && strlen(section));
assert(key != NULL && strlen(key));
*sec_e = *sec_s = *key_e = *key_s = *value_s = *value_e = -1;
while( !end_of_string(p[i]) ) {
//find the section
if( ( 0==i || newline(p[i-1]) ) && left_barce(p[i]) )
{
int section_start=i+1;
//find the ']'
do {
i++;
} while( !right_brace(p[i]) && !end_of_string(p[i]));
if( 0 == strncmp(p+section_start,section, i-section_start)) {
int newline_start=0;
i++;
//Skip over space char after ']'
while(isspace(p[i])) {
i++;
}
//find the section
*sec_s = section_start;
*sec_e = i;
while( ! (newline(p[i-1]) && left_barce(p[i]))
&& !end_of_string(p[i]) ) {
int j=0;
//get a new line
newline_start = i;
while( !newline(p[i]) && !end_of_string(p[i]) ) {
i++;
}
//now i is equal to end of the line
j = newline_start;
int valid = j;
if('#' != p[j]) //skip over comment
{
while(j < i && p[j]!='=') {
j++;
if(' ' != p[j] && '\t' != p[j] && '=' != p[j])
valid = j;
if('=' == p[j]) {
if(strncmp(key,p+newline_start,valid-newline_start)==0)
{
//find the key ok
*key_s = newline_start;
*key_e = j-1;
valid = j+1;
while(' ' == p[valid] || '\t' == p[valid])
valid++;
*value_s = valid;
*value_e = i;
return 1;
}
}
}
}
i++;
}
}
}
else
{
i++;
}
}
return 0;
}

]]> - re: 鍙戝竷璺ㄥ鉤鍙癐NI鏂囦歡璇誨啓API(C++鐗堟湰) V0.2.1http://m.shnenglu.com/dyj057/archive/2008/03/25/38074.html#45345璞嗚姳楸肩墖璞嗚姳楸肩墖Tue, 25 Mar 2008 06:02:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/03/25/38074.html#45345浣垮叾鑳藉垎鏋?br>name = value
榪欑=涓よ竟甯︽湁絀烘牸鎴朶t鐨勬牸寮?
int IniFile::parse_file(const char *section, const char *key, const char *buf,int *sec_s,int *sec_e,
int *key_s,int *key_e, int *value_s, int *value_e)
{
const char *p = buf;
int i=0;
assert(buf!=NULL);
assert(section != NULL && strlen(section));
assert(key != NULL && strlen(key));
*sec_e = *sec_s = *key_e = *key_s = *value_s = *value_e = -1;
while( !end_of_string(p[i]) ) {
//find the section
if( ( 0==i || newline(p[i-1]) ) && left_barce(p[i]) )
{
int section_start=i+1;
//find the ']'
do {
i++;
} while( !right_brace(p[i]) && !end_of_string(p[i]));
if( 0 == strncmp(p+section_start,section, i-section_start)) {
int newline_start=0;
i++;
//Skip over space char after ']'
while(isspace(p[i])) {
i++;
}
//find the section
*sec_s = section_start;
*sec_e = i;
while( ! (newline(p[i-1]) && left_barce(p[i]))
&& !end_of_string(p[i]) ) {
int j=0;
//get a new line
newline_start = i;
while( !newline(p[i]) && !end_of_string(p[i]) ) {
i++;
}
//now i is equal to end of the line
j = newline_start;
int valid = j;
if('#' != p[j]) //skip over comment
{
while(j < i && p[j]!='=') {
j++;
if('=' == p[j]) {
if(strncmp(key,p+newline_start,valid-newline_start)==0)
{
//find the key ok
*key_s = newline_start;
*key_e = j-1;
while(' ' == p[valid] || '\t' == p[valid])
valid++;
*value_s = valid;
*value_e = i;
return 1;
}
}
if(' ' != p[j] && '\t' != p[j])
valid = j;
}
}
i++;
}
}
}
else
{
i++;
}
}
return 0;
}
]]> - re: 榪蜂綘鍨媂ML鏂囨。鐢熸垚鍣?ANSI C)http://m.shnenglu.com/dyj057/archive/2008/03/25/18132.html#45326suxiaojacksuxiaojackMon, 24 Mar 2008 23:15:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/03/25/18132.html#45326
]]> - re: ubuntu 7.10鐪熼叿錛屾垜濂藉枩嬈?鏁堟灉鍥懼凡緇忔洿鏂?http://m.shnenglu.com/dyj057/archive/2008/03/06/34758.html#43835-_--_-Thu, 06 Mar 2008 09:35:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/03/06/34758.html#43835
]]> - re: 鍙戝竷璺ㄥ鉤鍙癐NI鏂囦歡璇誨啓API(C鐗堟湰) V0.2.0http://m.shnenglu.com/dyj057/archive/2008/01/23/37958.html#41701yenyenWed, 23 Jan 2008 03:17:00 GMThttp://m.shnenglu.com/dyj057/archive/2008/01/23/37958.html#41701
]]> - re: 鎴戠殑璁$畻鏈烘儏緙?/title>http://m.shnenglu.com/dyj057/archive/2007/12/27/27349.html#39758MidapexMidapexThu, 27 Dec 2007 12:19:00 GMThttp://m.shnenglu.com/dyj057/archive/2007/12/27/27349.html#39758
]]>
久久久久久亚洲Av无码精品专口|
久久国产精品久久|
97精品依人久久久大香线蕉97|
亚洲精品无码成人片久久|
欧美久久综合性欧美|
久久受www免费人成_看片中文|
久久婷婷五月综合97色|
久久久久国产一区二区三区|
欧美日韩久久中文字幕|
91精品免费久久久久久久久|
综合网日日天干夜夜久久
|
午夜视频久久久久一区
|
97久久超碰成人精品网站|
久久丝袜精品中文字幕|
婷婷综合久久狠狠色99h|
久久久久久久免费视频|
狠狠色综合网站久久久久久久|
亚洲∧v久久久无码精品|
久久亚洲国产精品成人AV秋霞|
精品久久久久中文字幕一区|
国产91色综合久久免费分享|
亚洲AV无码一区东京热久久|
亚洲第一永久AV网站久久精品男人的天堂AV|
久久99亚洲网美利坚合众国|
久久久久久久97|
中文字幕无码久久人妻|
亚洲AⅤ优女AV综合久久久|
国产激情久久久久影院|
狠狠色伊人久久精品综合网|
亚洲天堂久久精品|
99久久夜色精品国产网站|
99久久精品国产一区二区蜜芽
|
久久人人爽人人爽人人片AV东京热
|
中文字幕热久久久久久久|
三级三级久久三级久久|
少妇熟女久久综合网色欲|
久久精品国产久精国产果冻传媒|
国产精品中文久久久久久久|
午夜欧美精品久久久久久久|
99久久成人国产精品免费
|
久久er国产精品免费观看2|