📄 readme
字号:
======================================================================NOTE: I use vi with a tabstop value of 3. Using the same tabstop value will make the text/code look properly indented.======================================================================1. What is this library about ?The STR library consists of string handling functions. Thesefunctions can be separated into 4 groups:A. String matching functions. A variety of algorithms are available for string matching: brute force Rabin-Karp Knuth-Morris-Pratt Boyer-Moore Shift-orB. String printing functions (similar to sprintf). These functions offer 2 significant advantages over sprintf: 1) they include functions that will *not* overrun the string buffer provided 2) they include functions returning "char *" as well as functions returning "int" so that one can pick the most appropriate one.C. String parsing functions. These functions offer an easy way of breaking a string into pieces.D. String utility functions. This group includes functions that will convert a string to upper/lower case etc.2. Setting up the STR libraryAll you need to do is type 'make'. This will create the library in thecurrent directory. The string printing functions use (and thereforerequire) the underlying format conversion facility of my SIO (StreamI/O) library. If you don't want to bother with it, you can define theflag NO_SIO in the Makefile (check the Makefile comments on how to dothis) which will turn all string printing functions to no-ops. The SIOlibrary is available from mystique.cs.colorado.edu in the directorypub/libs (it may also be available at other places). Make sure you getSIO version 1.6.2 or later; versions prior to 1.6.2 will result inidentical behavior between the strx_*print* and the str_*print*functions.To install the library and the associated man pages and include filestype 'make install'. This will install the library in LIBDIR, the manpages in MANDIR and the include files in INCLUDEDIR. LIBDIR,INCLUDEDIR, and MANDIR are Makefile variables that you can edit in theMakefile or override when you invoke 'make'.3. EpiloguePlease send bug-reports/comments to panos@cs.colorado.eduYou can obtain the latest version of this library frommystique.cs.colorado.edu in the directory pub/libs.Feel free to modify the library to suit your needs. If you want todistribute modifications to this library, please read the COPYRIGHTfile. It basically says that you are free to redistribute as long asyou retain the original copyright notice and you make sure that yourmodifications are identifiable. In order to achieve this I havereserved the first 3 components of the version number (for example,1.4.2) and you can identify your mods by appending another component tothat version number (for example, 1.4.2.A2). Also, if you distribute amodified version of the library, you take full responsibility for anybugs in the code (not just your code; the whole thing).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -