Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
BaServerLib.h File Reference
#include <TargConfig.h>
#include <AllocatorIntf.h>
#include <ctype.h>
#include <stddef.h>
Include dependency graph for BaServerLib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BaTm
 Represents the components of calendar time. More...
 

Functions

BA_API void baConvBin2Hex (void *hexOutData, U8 binIn)
 Encode one byte as two lowercase hexadecimal characters. More...
 
BA_API U8 baConvHex2Bin (U8 c)
 Decode one hexadecimal digit. More...
 
BA_API void baConvU32ToHex (void *to, U32 from)
 Encode four bytes as eight lowercase hexadecimal characters. More...
 
BA_API U32 baConvHexToU32 (const void *from)
 Decode eight hexadecimal characters into a U32. More...
 
BA_API char * baStrdup (const char *str)
 Allocate a NUL-terminated copy of a string using baMalloc. More...
 
BA_API const void * baBSearch (const void *key, const void *base, int num, int size, int(*cmp)(const void *, const void *))
 Find a key in a sorted array without modifying it. More...
 
BA_API int baStrCaseCmp (const char *a, const char *b)
 Compare two NUL-terminated strings using bTolower for case folding. More...
 
BA_API int baStrnCaseCmp (const char *a, const char *b, size_t len)
 Compare at most len bytes, using bTolower for case folding. More...
 
const char * baGetToken (const char **str, const char *set)
 Locate a token separated by characters in set. More...
 
BA_API BaTime baParseDate (const char *str)
 Parse an HTTP date string as UTC. More...
 
BA_API int baB64Decode (unsigned char *outStr, int outStrSize, const char *b64EncStr, BaBool *overflow)
 Decode base64 or base64url into a caller buffer. More...
 
BA_API int baElideDotDot (char *str)
 Normalize a slash-separated path in place. More...
 
BA_API void baXmlUnescape (char *f)
 Decode selected XML entity spellings in place. More...
 
BA_API U8 baDaysInMonth (U16 y, U16 m)
 Return the number of days in a Gregorian calendar month. More...
 
BA_API int baTime2tm (struct BaTm *tmP, BaTime t)
 Convert UTC epoch seconds to calendar fields. More...
 
BA_API int baTime2tmEx (const BaTimeEx *tex, const BaBool local, struct BaTm *tm)
 Convert a timestamp to UTC or offset-adjusted calendar fields. More...
 
BA_API BaTime baTm2Time (struct BaTm *tmP)
 Convert calendar fields to UTC epoch seconds. More...
 
BA_API int baTm2TimeEx (struct BaTm *tm, BaBool local, BaTimeEx *tex)
 Convert calendar fields and an optional timezone offset to a timestamp. More...
 
BA_API int baISO8601ToTime (const char *str, size_t len, BaTimeEx *tex)
 Parse an ISO 8601 calendar timestamp with an explicit timezone. More...
 
BA_API int baTime2ISO8601 (const BaTimeEx *tex, char *str, size_t len)
 Format a timestamp as ISO 8601 using its timezone offset. More...
 
void * baMalloc (size_t size)
 Allocate uninitialized storage using the target's configured allocator. More...
 
void * baRealloc (void *p, size_t size)
 Resize storage using the target's configured allocator. More...
 
void baFree (void *p)
 Release storage using the target's configured allocator. More...