#include <search.h>
Static Public Member Functions | |
| static bool | parse (const char *Path, int *Section, int *Method, propertyMap *Properties) |
Parses paths which came from the webserver. It splits the path into a section, a certain method and its properties.
This can be used to easily determine which file was requested by a client
| bool cPathParser::parse | ( | const char * | Path, | |
| int * | Section, | |||
| int * | Method, | |||
| propertyMap * | Properties | |||
| ) | [static] |
Parses the path
This will parse the path and stores the result in the pointers given.
true, if the parsing was successfulfalse, otherwise | Path | the path which is parsed | |
| Section | the number of the registered section | |
| Method | the number of the registered method | |
| Properties | the properties found in the path |
1.5.8