#ifndef __URLUTILITIES__
#define __URLUTILITIES__
#include <string>
#if TARGET_CARBON
#define string std::string
#endif
#define kFileURLDelimiter '\r' // delimits URL's within cache files
#if __cplusplus
#endif
Boolean IsCharURLReservedOrIllegal( const char c );
void EncodeCharToHex( const char c, char* newHexChar );
char DecodeHexToChar( const char* oldHexTriplet, Boolean* wasHexTriplet );
Boolean IsURL( const char* theString, UInt32 theURLLength, char** svcTypeOffset );
Boolean AllLegalURLChars( const char* theString, UInt32 theURLLength );
Boolean IsLegalURLChar( char theChar );
void GetServiceTypeFromURL( const char* readPtr,
UInt32 theURLLength,
char* URLType );
Boolean EncodeHTTPString( string& text );
void DecodeHTTPString( string& theString );
#if __cplusplus
#endif
#endif