FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
August 01, 2003

Generalized String Manipulation: Access Shims and Type Tunneling

(Page 18 of 20)
String Length

String Length

Most of the discussion in the article has centered on the generalization of access to the string contents. However, length is an important attribute of all strings, and one that, with the exception of C-style strings, is usually already calculated. It would be useful to be able to have a generalized approach to the determination of length that would efficiently use the available attribute where it exists rather than calculating it each time.

Each c_str_ptr() access shim is accompanied by a corresponding c_str_len() attribute shim, some of which are shown in Listing 12.

Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK