文件名称:41104
介绍说明--下载内容均来自于网络,请自行研究使用
This the string class you expected to find in STL, but didn t.
The design goal of this class is to make all the string handling functions from the standard C library available within a single C++ class, with the added bonus of automatic buffer allocation and deallocation.
The terse names of the original C functions have been preserved to ease the transition for C programmers. New functions have been given short but less cryptic names using the same style (one word, all lower case).
Most functions work as they do in the standard library or slightly better. Some examples:
1: The resulting string is always zero terminated.
2: All functions are thread safe in the sense that the class (but not an individual object) can be used by multiple threads concurrently.
3: Pre-conditions are tested using assert() which makes it possible to trap "out of bounds" errors in debug build, with no speed penalties in release build.
-This the string class you expected to fin d in STL, but did t. The design goal of this class is to mak e all the string handling functions from the sta ndard C library available within a single C clas s, with the added bonus of automatic buffer alloca tion and deallocation. The terse names of the or iginal C functions have been preserved to ease t he transition for C programmers. New functions have been given short but less cryptic names usi ng the same style (one word, all lower case). Most functions work as they do i n the standard library or slightly better. Some examples : 1 : The resulting string is always zero terminated . 2 : All functions are thread safe in the sense that t he class (but not an individual object) can be us ed by multiple threads concurrently. 3 : Pre-conditions
The design goal of this class is to make all the string handling functions from the standard C library available within a single C++ class, with the added bonus of automatic buffer allocation and deallocation.
The terse names of the original C functions have been preserved to ease the transition for C programmers. New functions have been given short but less cryptic names using the same style (one word, all lower case).
Most functions work as they do in the standard library or slightly better. Some examples:
1: The resulting string is always zero terminated.
2: All functions are thread safe in the sense that the class (but not an individual object) can be used by multiple threads concurrently.
3: Pre-conditions are tested using assert() which makes it possible to trap "out of bounds" errors in debug build, with no speed penalties in release build.
-This the string class you expected to fin d in STL, but did t. The design goal of this class is to mak e all the string handling functions from the sta ndard C library available within a single C clas s, with the added bonus of automatic buffer alloca tion and deallocation. The terse names of the or iginal C functions have been preserved to ease t he transition for C programmers. New functions have been given short but less cryptic names usi ng the same style (one word, all lower case). Most functions work as they do i n the standard library or slightly better. Some examples : 1 : The resulting string is always zero terminated . 2 : All functions are thread safe in the sense that t he class (but not an individual object) can be us ed by multiple threads concurrently. 3 : Pre-conditions
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Work
....\common
....\......\cstr.cpp
....\......\cstr.h
....\common
....\......\cstr.cpp
....\......\cstr.h