亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readme.2nd

?? SPLASH is a c++ class library that implements many of the Perl constructs and data types, including
?? 2ND
字號:
For support Email to morris@netcom.com

I would welcome bug reports for a while!
Also comments are always welcome.

The latest version of SPLASH is always available via anonymous
FTP from netcom.com in pub/mo/morris/splash.tar.Z (for Unix and gcc)
and pub/mo/morris/splash.zip (for MSDOS)

Introducing SPLASH
==================

SPLASH is a c++ class library that implements my favourite perl
constructs.  Obviously I can't duplicate all the functionality of perl,
and wouldn't need to as perl already exists!! However I find this
useful, because it allows me to do Perl-like things in my programs.

This Code is not copyright, use as you will.  The regexp code is by
Henry Spencer, see the comments for Copyright info.  The only changes I
have made are to the header file, by adding a c++ prototype field.

The Class Hierarchy and member functions are are fully described in
the file splash.doc
	     
Building NOTES
==============
This must be compiled with a 3.0 or greater c++ compiler that can
handle Templates and nested classes.

It has been tested on Borland c++ v4.0 and USL-based 3.0 cfront.
GCC v2.6.3 will compile it with -fno-implicit-templates, and explicit
template declarations in a single file. ie if when you link and gcc
complains about undefined functions that are templates, you must add
an explicit template declaration for each template you use in one file.
eg you get the following errors...

assoc.o: In function `main':
assoc.cc:22: undefined reference to `operator<<(ostream &, Assoc<int> &)'
assoc.cc:602: undefined reference to `SPListBase<Binar<int> >::count(void) const
assoc.o: In function `SPList<Binar<int> >::shift(void)':
assoc.o: In function `SPList<Binar<int> >::push(SPList<Binar<int> > const &)':
assoc.cc:621: undefined reference to `SPListBase<Binar<int> >::count(void) const

you would add the following to the .cc file:-
template ostream& operator<<(ostream &, Assoc<int> const &);
template class SPList<Binar<int> >;
template class SPListBase<Binar<int> >;

See the samples and the test files.

To build:

compile splash.cpp and regex.c. Link in with your App.
Include splash.h, (and assoc.h if used).

> cc -c regex.c
> CC -c splash.cpp
> CC yourapp.cpp splash.o regex.o -o yourapp

To test:

> CC -DTEST spltest.cpp splash.cpp regex.o -o spltest
> spltest > x
> diff x splash.v

and

> CC -DTEST slicetst.cpp splash.o regex.o -o slicetst
> slicetst > x
> diff x slicetst.v

This will do a full regression test. splash.v & slicetst.v contains the
sample output of a correct run, so no differences should be
encountered.

regex.c is not an ANSI c file, so you will have to turn off prototype
checking on your ANSI c compiler (or select kr checking).

Some of the samples use a file called tracer.h, this is a fairly useful
Debugging helper grabbed from the net and slightly modified. I include
tracer.h and tracer.cpp for completeness, however they are not required.

CAVEATS (known ones that is)
=======
This is not an optimised implementation, by any stretch of the
imagination. It is a quick and dirty, "but it works" one.

No "out of memory checking" is done, I thought I'd wait for
exceptions!!

I have taken a few liberties in translating the selected perl
functionality into a class library, apologies to Larry Wall, and
anyone else this may offend.  You are welcome to fix it, just tell me
how you did it.

A SPList<T> can only contain a list of type T, it cannot, as yet,
have multiple types in the same list. (This is feasible but messy).

Assigning to an element of a SPList that is greater than the current
length of the SPList will expand the list as in perl, but the values
in the newly created elements will be undefined, unlike perl. Except
SPStringList which will create empty strings. Also if <T> is a class
then the values will be whatever the default constructor creates.

Anything that you make a SPList out of must define an operator<(),
for the sort routine. Its ok if it is a dummy.

The first index of a list is always 0. (Again this could be fixed).

Unlike perl you can also access characters within
a SPString using the '[]' syntax. But you must use substr() to
change them.

Note that SPStrings cannot have embedded '\0' like perl, this
is an efficiency trade off, because '\0' as a terminator is so
ingrained in c++ and c strings. (This could be fixed by carefully
replacing all str... functions with mem... functions

Regular Expressions
-------------------

Regular expressions may be slightly different, I used the straight
Henry Spencer version. I'm not sure what changes Larry made to them.
(It definitely doesn't support \w \b \s \S \d \D, or global match
mode). - If someone can make Larry's regexp stuff into a stand-alone
package like the original regex stuff, then I'll use it!

The g & o options are not supported in the m() functions.
I will try to support the 'g' option for m() in a list context.

SPStringList::m(exp, targ) and SPString::m(exp, list) are used to
simulate $&, $0 - $9 in perl. In both cases the list gets loaded with
the subexpression matches. The 0'th element is equivalent to $& in perl
and the 1'st element is equivalent to $1 etc.

Note that in the SPStringlist::m() member function, result lists are
appended whereas in SPString::m(s, list) 'list' is reset first.
eg
{
SPString s;
SPStringList l1, l2;

	s= "hello frobo goodbye";
	l1.push("was here first1"); l2.push("was here first2");
	s.m("(.*)frobo(.*)", l2); // Overwrites l with new list
	l1.m("(.*)frobo(.*)", s); // appends l with new list
// produces this result:
// l2[0] is "hello frobo goodbye"	// equiv of $&
// l2[1] is "hello "			// equiv of $1
// l2[2] is " goodbye"			//	    $2
// and
// l1[0] is "was here first"
// l1[1] is "hello frobo goodbye"	// equiv of $&
// l1[2] is "hello "			//          $1
// l1[3] is " goodbye"			//	    $2
// an l1.reset() preceding the l1.m() would get rid of l1[0] in the
// above example.	
}

To get the exact perl semantics of the m function in a list context
you can use the global m() function as follows:-
{
SPStringList sl;
sl = m("(..) (..)", "ab cd ef"); // sl[0] gets "ab", sl[1] gets "cd"
}

SP expressions (s/123/$&*2/e) in a substitute command
(SPString::s()) are obviously not done. However $& and $0-$9 are
correctly expanded and substituted.

Also remember that if you want to put a \ in the regular expression
then you must actually type \\ as the c compiler will interpret a \ for
you. What happens to things like \t is up to your compiler.


I/O
---
I/O is done using standard c++ streams. I think this is ok, although
some perl-ism maybe introduced one day.
eg to copy a text file a line at a time:-
{
ifstream fin("file1.txt");
ofstream fout("file2.txt");
SPString si;

    while(fin >> si) fout << si << endl;
}

This will read the entire file into a SPStringList:-
{
SPStringList l;
ifstream fin("file1.txt");

	fin >> l;
}

One nifty outcome of using streams this way is the following syntax
will load a SPStringList and SPList<T> in a reasonably compact
way:-
{
SPStringList slist;
strstream ss;
    ss << "one\n" << "two\nthree\nfour\n";
    ss >> slist; // creates a 4 element string list

strstream iss;
SPList<int> il;

    iss << "1 2 3 4 5 6 7 8 9 10" << endl; // quick load an integer array
    iss >> il; // creates a 10 element integer list
}


Iterators
---------
There is no class iterator per-se, but all lists (including Assoc) allow
an index to step through the list one by one. So iteration can be
achieved, albeit clumsily.
eg

SPList<int> intlist;

for(int i=0;i<inlist.scalar();i++){
	cout << intlist[i];
}

There is a header file called splistit.h that implements a simple iterator
and FOREACH macro using the above technique.

A SPList or SPStringList may be used in an if statement to test
if the list is empty or not.
eg
{
SPList<int> il;

	if(il) cout << "List is not empty" << endl;
	else il.push(1);
}

==========
Disclaimer
==========

This is a personal work, use as-is with no express or implied warranty and no 
responsibility for  misuse or problems.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99国产精品麻豆| 色噜噜狠狠色综合欧洲selulu| 国产精品一二三在| 欧美性大战xxxxx久久久| 精品国产一区二区三区忘忧草 | 91麻豆精品国产自产在线| 国产亚洲婷婷免费| 日韩高清中文字幕一区| 99久久99久久精品免费观看| 欧美xxxxxxxxx| 午夜精品久久久久久久久久久 | 国产日韩欧美在线一区| 日韩激情一二三区| 91视频91自| 国产夜色精品一区二区av| 免费日韩伦理电影| 欧美日韩大陆在线| 亚洲精品国产一区二区精华液 | 国产精品沙发午睡系列990531| 日本欧美在线看| 欧美在线free| 亚洲欧美欧美一区二区三区| 国产成人自拍网| 久久综合九色综合欧美98| 丝袜脚交一区二区| 欧美日韩第一区日日骚| 亚洲综合久久久久| 一本色道综合亚洲| 国产精品欧美久久久久一区二区| 国产一区在线观看视频| 欧美一级生活片| 免费观看日韩av| 欧美一级黄色大片| 免费不卡在线观看| 日韩欧美国产系列| 美女视频一区二区| 精品国产不卡一区二区三区| 捆绑调教一区二区三区| 精品卡一卡二卡三卡四在线| 精品综合久久久久久8888| 久久亚洲欧美国产精品乐播 | 精品久久久久一区二区国产| 久久99国产精品成人| 精品成人免费观看| 成人午夜看片网址| 亚洲少妇最新在线视频| 色综合久久六月婷婷中文字幕| 亚洲精品视频在线看| 精品视频一区 二区 三区| 香蕉成人伊视频在线观看| 欧美一级欧美三级| 国产一区美女在线| 国产精品福利电影一区二区三区四区| 99麻豆久久久国产精品免费 | 国产精品九色蝌蚪自拍| 91丨porny丨户外露出| 亚洲国产视频一区二区| 欧美丰满美乳xxx高潮www| 久久99国产精品免费| 国产精品久久久99| 在线成人免费观看| 国产成人精品一区二区三区四区 | 欧美精品一区二区久久婷婷| 国产精品亚洲一区二区三区在线| 国产精品乱码一区二三区小蝌蚪| 色天天综合色天天久久| 蜜臀av一区二区在线观看| 国产精品久久久久一区二区三区共| 色偷偷久久一区二区三区| 美女看a上一区| 国产精品久久久久aaaa| 欧美一个色资源| 波多野结衣欧美| 午夜视频在线观看一区二区 | 亚洲精品视频在线看| 欧美成人a视频| 91色婷婷久久久久合中文| 午夜成人免费电影| 中文字幕在线观看不卡视频| 欧美一区二区三区系列电影| 99视频国产精品| 久久不见久久见免费视频1| 亚洲日本中文字幕区| 精品国产91久久久久久久妲己 | 国产大片一区二区| 五月天激情综合网| 中文字幕中文字幕一区| 日韩亚洲欧美在线观看| 欧美亚洲日本一区| 成人精品免费网站| 韩国欧美国产一区| 五月婷婷色综合| 一区二区三区在线高清| 国产视频在线观看一区二区三区| 91精品国产综合久久精品性色| 色狠狠桃花综合| 国产成人亚洲综合a∨猫咪| 免费观看在线综合色| 亚洲午夜激情网站| 亚洲色图欧洲色图| 日本一二三四高清不卡| xnxx国产精品| 日韩一卡二卡三卡| 日韩一区二区在线观看视频| 欧美在线看片a免费观看| 99re这里都是精品| 成人妖精视频yjsp地址| 国产精品996| 国产精品一区二区91| 久久精品国产一区二区| 男女男精品视频网| 奇米影视7777精品一区二区| 日韩精品亚洲专区| 婷婷国产在线综合| 视频一区视频二区在线观看| 图片区小说区区亚洲影院| 亚洲一区二区三区在线| 亚洲午夜久久久久久久久久久| 亚洲精品成人在线| 一区二区国产视频| 亚洲一区二区三区视频在线播放| 亚洲色图在线看| 亚洲福利电影网| 日韩国产欧美视频| 国内精品伊人久久久久av影院| 国产尤物一区二区| www.亚洲人| 在线一区二区观看| 337p亚洲精品色噜噜噜| 欧美va亚洲va香蕉在线| 日韩欧美色电影| 久久久久99精品国产片| 国产精品全国免费观看高清 | 亚洲成a人片在线不卡一二三区| 亚洲 欧美综合在线网络| 视频在线观看一区二区三区| 黑人巨大精品欧美一区| 成人精品免费视频| 欧美色精品天天在线观看视频| 欧美精品三级日韩久久| 精品乱人伦小说| 中文字幕日韩av资源站| 亚洲国产成人高清精品| 久久成人18免费观看| 成人一区二区三区中文字幕| 在线视频一区二区三| 欧美一区二区网站| 国产精品色婷婷久久58| 亚洲一区二区四区蜜桃| 精品伊人久久久久7777人| av一区二区三区四区| 91精品免费观看| 国产精品久久久久久久浪潮网站 | 色综合久久久久综合99| 日韩一区二区三区在线| 中文字幕av一区二区三区高 | 亚洲欧美日韩精品久久久久| 蜜臀久久99精品久久久久宅男 | 欧美国产欧美亚州国产日韩mv天天看完整 | 国产校园另类小说区| 亚洲一区二区高清| 国产成人av网站| 欧美一区午夜精品| 亚洲视频一区二区在线| 黑人巨大精品欧美一区| 欧美三级日韩三级国产三级| 国产女人aaa级久久久级| 日本女优在线视频一区二区| 91麻豆免费看| 欧美经典一区二区三区| 蜜臀久久久久久久| 91国偷自产一区二区开放时间| 久久久久久免费毛片精品| 天堂一区二区在线免费观看| 91在线porny国产在线看| 久久亚区不卡日本| 日本欧美一区二区三区| 欧美视频在线播放| 最新中文字幕一区二区三区| 国产在线精品不卡| 欧美一级久久久| 天天爽夜夜爽夜夜爽精品视频| 91在线免费播放| 国产精品天美传媒| 高清成人免费视频| 久久久久久久免费视频了| 日本午夜精品一区二区三区电影| 欧美日韩一区二区三区四区五区| 亚洲欧洲在线观看av| 成人污污视频在线观看| 国产亚洲欧美在线| 国产一区在线不卡| 久久久精品黄色| 国产乱理伦片在线观看夜一区| 精品剧情v国产在线观看在线| 另类的小说在线视频另类成人小视频在线| 欧美主播一区二区三区| 亚洲中国最大av网站| 欧美亚洲国产bt| 亚洲国产精品久久艾草纯爱|