String NG : basic SquidString updates pt 2
- finished the analysis of raw buffer exporting, divided among c-sting
and raw-buf access clients
- general sanitization
- reversal of some wrongly-renamed variables and comments
- implementation of SQUIDSTRINGPRINT and SQUIDSTRINGPH (placeholder) macros and
psize() function for printf-style calls
- implementation of, and migration to, String::size_type and String::npos
- de-inlining of pos(), rpos(), find() and rfind() calls
- implementation and use of a proper substr() call
*/
#include "config.h"
-#include "assert.h"
#include <cstring>
+ #ifdef HAVE_STDINT_H
+ #include <stdint.h> //for INT_MAX
+ #else /* HAVE_STDINT_H */
+ #ifndef INT_MAX
+ #define INT_MAX 1<<31 //hack but a safe bet
+ #endif /* INT_MAX */
+ #endif /* HAVE_STDINT_H */
+
+
String::String() : size_(0), len_(0), buf_ (NULL)
{
#if DEBUGSTRINGS