Parsing.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 /* DEBUG: section 03 Configuration File Parsing */
10 
11 #ifndef SQUID_PARSING_H
12 #define SQUID_PARSING_H
13 
14 #include "ip/Address.h"
15 
16 double xatof(const char *token);
17 int xatoi(const char *token);
18 unsigned int xatoui(const char *token, char eov = '\0');
19 long xatol(const char *token);
20 int64_t xatoll(const char *token, int base, char eov = '\0');
21 unsigned short xatos(const char *token);
22 
26 int64_t GetInteger64(void);
27 
33 int GetInteger(void);
34 
46 double GetPercentage(bool limit = true);
47 
48 unsigned short GetShort(void);
49 
50 // on success, returns true and sets *p (if any) to the end of the integer
51 bool StringToInt(const char *str, int &result, const char **p, int base);
52 bool StringToInt64(const char *str, int64_t &result, const char **p, int base);
53 
60 bool GetHostWithPort(char *token, Ip::Address *ipa);
61 
62 #endif /* SQUID_PARSING_H */
63 
unsigned int xatoui(const char *token, char eov= '\0')
Definition: Parsing.cc:57
unsigned short xatos(const char *token)
Definition: Parsing.cc:108
bool GetHostWithPort(char *token, Ip::Address *ipa)
Definition: Parsing.cc:251
bool StringToInt64(const char *str, int64_t &result, const char **p, int base)
Definition: Parsing.cc:231
char * p
Definition: membanger.c:43
int xatoi(const char *token)
Definition: Parsing.cc:43
long xatol(const char *token)
Definition: Parsing.cc:75
bool StringToInt(const char *str, int &result, const char **p, int base)
Definition: Parsing.cc:211
unsigned short GetShort(void)
Definition: Parsing.cc:199
int64_t GetInteger64(void)
Definition: Parsing.cc:126
double GetPercentage(bool limit=true)
Definition: Parsing.cc:172
double xatof(const char *token)
Definition: Parsing.cc:24
int GetInteger(void)
Definition: Parsing.cc:142
int64_t xatoll(const char *token, int base, char eov= '\0')
Definition: Parsing.cc:89

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors