Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update Programmer's Manual's GIS lib (string) section #4333

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 33 additions & 10 deletions lib/gis/gislib.dox
Original file line number Diff line number Diff line change
Expand Up @@ -1179,13 +1179,29 @@ The next routines replaces character(s) from string.

Replace all occurrences of character in string with new.

- G_str_to_sql()

Make string SQL compliant.

- G_str_replace()

Replace all occurrences of old_str in buffer with new_str.

This next routine copies a string to allocated memory.

- G_store()

This routine allocates enough memory to hold the string, and returns a
pointer to the allocated memory.

- G_store_lower()

Copy string to allocated memory and convert copied string to lower case.

- G_store_upper()

Copy string to allocated memory and convert copied string to upper case.

The next 2 routines convert between upper and lower case.

- G_tolcase()
Expand All @@ -1203,12 +1219,6 @@ equivalent.
This routine remove trailing zeros from decimal number for example:
23.45000 would come back as 23.45.

- G_index()

- G_rindex()

Get position of delimiter.

- G_strcasecmp()

- G_strncasecmp()
Expand All @@ -1220,11 +1230,24 @@ String compare ignoring case (upper or lower).
Return a pointer to the first occurrence of subString in mainString,
or NULL if no occurrences are found.

- G_strdup()
- G_str_concat()

Concatenation of a list of strings, separated by a given character.

- G_tokenize()
- G_tokenize2()

Tokenize string. Create array of strings from an input string split up with
given delimiter characters.

- G_strlcat()

Size-bounded string concatenation (wrapper function to strlcat()).

- G_strlcpy()

Size-bounded string copying (wrapper function to strlcpy()).

Returns a pointer to a string that is a duplicate of the string given
to G_strdup. The duplicate is created using malloc. If unable to
allocate the required space, NULL is returned.

\section Enhanced_UNIX_Routines Enhanced UNIX Routines

Expand Down
Loading