]> git.ipfire.org Git - thirdparty/squid.git/commit
Add [] operator for offset-based access into String's.
authoramosjeffries <>
Sat, 19 Jan 2008 17:38:32 +0000 (17:38 +0000)
committeramosjeffries <>
Sat, 19 Jan 2008 17:38:32 +0000 (17:38 +0000)
commit3db44fdf67906c85700b453fbcdf6cea0bcbd6e9
tree2da61645196183ac31facc9b6924c582ab97f8c4
parenta689bd4e981b27d90b2de431cd02cacc77c1f1a0
Add [] operator for offset-based access into String's.

Safer than pointer arithmetic and manipulation.
Also users of String objects should NOT have arbitrary access to the
underlying raw data buffer.

This single operator deprecates several old access functions.
src/SquidString.h
src/String.cci