锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久伊人亚洲AV无码网站,老司机国内精品久久久久,久久精品国产99国产电影网http://www.shnenglu.com/dyj057/archive/2008/05/09/38074.html#49295wuxunfengwuxunfengFri, 09 May 2008 05:05:00 GMThttp://www.shnenglu.com/dyj057/archive/2008/05/09/38074.html#49295鏈変釜闂鎯抽棶涓涓嬨傚鏋?INI鏂囦歡涓紝鍚屼竴涓猄ECTION涓紝鏈夊嚑涓悓鏍風殑KEY錛岄偅涔堣鍙栫殑鏃跺欙紝浼氳鍙栧摢涓狵EY鍛紝鍙互寰幆璇誨彇鍚?渚嬶細
[SECTION]
key=data
key=data
key=data
key1=data2
]]>- 鍑芥暟搴撴湁榪欎釜鍔熻兘鍚楋紵http://www.shnenglu.com/dyj057/archive/2008/05/09/3012.html#49294wuxunfengwuxunfengFri, 09 May 2008 05:03:00 GMThttp://www.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://www.shnenglu.com/dyj057/archive/2008/04/26/38074.html#48189luoweiliuzluoweiliuzSat, 26 Apr 2008 08:09:00 GMThttp://www.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://www.shnenglu.com/dyj057/archive/2008/03/25/346.html#45384kendankendanTue, 25 Mar 2008 12:33:00 GMThttp://www.shnenglu.com/dyj057/archive/2008/03/25/346.html#45384
]]> - re: 鍙戝竷璺ㄥ鉤鍙癐NI鏂囦歡璇誨啓API(C++鐗堟湰) V0.2.1http://www.shnenglu.com/dyj057/archive/2008/03/25/38074.html#45348璞嗚姳楸肩墖璞嗚姳楸肩墖Tue, 25 Mar 2008 07:03:00 GMThttp://www.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://www.shnenglu.com/dyj057/archive/2008/03/25/38074.html#45345璞嗚姳楸肩墖璞嗚姳楸肩墖Tue, 25 Mar 2008 06:02:00 GMThttp://www.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://www.shnenglu.com/dyj057/archive/2008/03/25/18132.html#45326suxiaojacksuxiaojackMon, 24 Mar 2008 23:15:00 GMThttp://www.shnenglu.com/dyj057/archive/2008/03/25/18132.html#45326
]]> - re: ubuntu 7.10鐪熼叿錛屾垜濂藉枩嬈?鏁堟灉鍥懼凡緇忔洿鏂?http://www.shnenglu.com/dyj057/archive/2008/03/06/34758.html#43835-_--_-Thu, 06 Mar 2008 09:35:00 GMThttp://www.shnenglu.com/dyj057/archive/2008/03/06/34758.html#43835
]]> - re: 鍙戝竷璺ㄥ鉤鍙癐NI鏂囦歡璇誨啓API(C鐗堟湰) V0.2.0http://www.shnenglu.com/dyj057/archive/2008/01/23/37958.html#41701yenyenWed, 23 Jan 2008 03:17:00 GMThttp://www.shnenglu.com/dyj057/archive/2008/01/23/37958.html#41701
]]> - re: 鎴戠殑璁$畻鏈烘儏緙?/title>http://www.shnenglu.com/dyj057/archive/2007/12/27/27349.html#39758MidapexMidapexThu, 27 Dec 2007 12:19:00 GMThttp://www.shnenglu.com/dyj057/archive/2007/12/27/27349.html#39758
]]>
久久本道久久综合伊人|
久久国产精品视频|
国产激情久久久久影院小草
|
精品久久久久久国产牛牛app
|
亚洲国产精品久久久久婷婷软件
|
无码人妻久久久一区二区三区
|
99久久亚洲综合精品成人|
久久e热在这里只有国产中文精品99|
久久精品草草草|
欧美熟妇另类久久久久久不卡|
久久精品无码一区二区三区免费|
亚洲欧美国产精品专区久久|
国产精品美女久久久网AV|
久久996热精品xxxx|
日韩人妻无码精品久久免费一|
99久久精品这里只有精品
|
奇米影视7777久久精品人人爽|
国产高潮国产高潮久久久91|
亚洲日本久久久午夜精品|
亚洲国产成人久久精品动漫|
免费精品久久天干天干|
国产精品成人99久久久久
|
国产成人精品综合久久久久|
一级做a爰片久久毛片毛片|
东京热TOKYO综合久久精品|
久久人人爽人人爽人人片AV不|
久久久国产精华液|
亚洲国产精品久久久久网站|
久久久无码人妻精品无码|
久久国产精品77777|
久久久精品国产免大香伊|
亚洲国产精品18久久久久久|
久久精品无码免费不卡|
99久久精品无码一区二区毛片|
久久精品www人人爽人人|
大香伊人久久精品一区二区
|
亚洲国产精品无码久久久久久曰
|
要久久爱在线免费观看|
久久精品国产72国产精福利|
狠狠久久综合伊人不卡|
精品久久久久久无码人妻蜜桃|