文件名称: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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
