--- parser3/src/include/pa_common.h 2005/11/16 14:47:36 1.103 +++ parser3/src/include/pa_common.h 2005/11/24 14:00:34 1.107 @@ -8,7 +8,7 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2005/11/16 14:47:36 $"; +static const char * const IDENT_COMMON_H="$Date: 2005/11/24 14:00:34 $"; #include "pa_string.h" #include "pa_hash.h" @@ -163,9 +163,9 @@ void file_move(const String& old_spec, c bool entry_exists(const char* fname, struct stat *afinfo=0); bool entry_exists(const String& file_spec); -bool file_readable(const String& file_spec); -bool dir_readable(const String& file_spec); -const String* file_readable(const String& path, const String& name); +bool file_exist(const String& file_spec); +bool dir_exists(const String& file_spec); +const String* file_exist(const String& path, const String& name); bool file_executable(const String& file_spec); bool file_stat(const String& file_spec, @@ -212,7 +212,10 @@ void remove_crlf(char *start, char *end) void check_safe_mode(struct stat finfo, const String& file_spec, const char* fname); #endif -char* pa_base64(const char *in, size_t len); +char* pa_base64_encode(const char *in, size_t in_size); +void pa_base64_decode(const char *in, size_t in_size, char*& result, size_t& result_size); + +int pa_get_valid_file_options_count(HashStringValue& options); // globals