文件名称: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
Work/common/cstr.h
Work/common/cstr.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.