ajurl.c
Datatypes: AjPUrl none
Url data
Sections: constructors Url data destructors Casts url data modifiers
Constructors
Functions: ajUrlNew
Url data constructor
Synopsis
Prototype
AjPUrl ajUrlNew (
void
);
Type | Name | Read/Write | Description |
AjPUrl | | RETURN | New object |
Returns
Description
Url data constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the url data object.
Functions: ajUrlDel
Url data destructor
Synopsis
Prototype
void ajUrlDel (
AjPUrl* Purl
);
Type | Name | Read/Write | Description |
AjPUrl* | Purl | Delete | Url data object to delete |
void | | RETURN | |
Output
Purl: | (Delete) | Url data object to delete |
Returns
Description
Url data destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Return values from an url data object
Functions: ajUrlGetDb ajUrlGetId ajUrlGetQryC ajUrlGetQryS
Return the database name
Synopsis
Prototype
const AjPStr ajUrlGetDb (
const AjPUrl url
);
Type | Name | Read/Write | Description |
const AjPUrl | url | Input | Url |
const AjPStr | | RETURN | Database name |
Input
Returns
const AjPStr: | Database name |
Description
Return the database name
See Also
See other functions in this section
Availability
In release 6.4.0
Return the identifier
Synopsis
Prototype
const AjPStr ajUrlGetId (
const AjPUrl url
);
Type | Name | Read/Write | Description |
const AjPUrl | url | Input | Url |
const AjPStr | | RETURN | Returned id |
Input
Returns
Description
Return the identifier
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the query string of an url data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajUrlGetQryC (
const AjPUrl url
);
Type | Name | Read/Write | Description |
const AjPUrl | url | Input | Url data object. |
const char* | | RETURN | Query as a character string. |
Input
url: | (Input) | Url data object. |
Returns
const char*: | Query as a character string. |
Description
Returns the query string of an url data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the query string of an url data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajUrlGetQryS (
const AjPUrl url
);
Type | Name | Read/Write | Description |
const AjPUrl | url | Input | Url data object. |
const AjPStr | | RETURN | Query as a string. |
Input
url: | (Input) | Url data object. |
Returns
const AjPStr: | Query as a string. |
Description
Returns the query string of an url data object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Url data modifiers
Functions: ajUrlClear
Resets all data for an url data object so that it can be reused.
Synopsis
Prototype
void ajUrlClear (
AjPUrl url
);
Type | Name | Read/Write | Description |
AjPUrl | url | Modify | Url data object |
void | | RETURN | |
Input & Output
url: | (Modify) | Url data object |
Returns
Description
Resets all data for an url data object so that it can be reused.
See Also
See other functions in this section
Availability
In release 6.4.0
Miscellaneous functions
Sections: exit
Functions called on exit from the program by ajExit to do
any necessary cleanup and to report internal statistics to the debug file
Functions: ajUrlExit
Cleans up url processing internal memory
Synopsis
Prototype
void ajUrlExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up url processing internal memory
See Also
See other functions in this section
Availability
In release 6.4.0