Skip to content

Commit

Permalink
docs: update Programmer's Manual's GIS lib (string) section (OSGeo#4333)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason authored Sep 17, 2024
1 parent df714ec commit a816dc1
Showing 1 changed file with 33 additions and 10 deletions.
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

0 comments on commit a816dc1

Please sign in to comment.