GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
case.c File Reference

DBMI Library (base) - case string conversion. More...

#include <grass/dbmi.h>
Include dependency graph for case.c:

Go to the source code of this file.

Functions

void db_char_to_lowercase (char *s)
 Convert character to lowercase. More...
 
void db_char_to_uppercase (char *s)
 Convert character to uppercase. More...
 
void db_Cstring_to_lowercase (char *s)
 Convert string to lowercase. More...
 
void db_Cstring_to_uppercase (char *s)
 Convert string to lowercase. More...
 
int db_nocase_compare (const char *a, const char *b)
 Compare strings case-insensitive. More...
 

Detailed Description

DBMI Library (base) - case string conversion.

(C) 1999-2009, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC), Radim Blazek
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file case.c.

Function Documentation

◆ db_char_to_lowercase()

void db_char_to_lowercase ( char *  s)

Convert character to lowercase.

Parameters
scharacter to be modified

Definition at line 22 of file case.c.

◆ db_char_to_uppercase()

void db_char_to_uppercase ( char *  s)

Convert character to uppercase.

Parameters
scharacter to be modified

Definition at line 33 of file case.c.

◆ db_Cstring_to_lowercase()

void db_Cstring_to_lowercase ( char *  s)

Convert string to lowercase.

Parameters
sstring buffer to be modified

Definition at line 44 of file case.c.

◆ db_Cstring_to_uppercase()

void db_Cstring_to_uppercase ( char *  s)

Convert string to lowercase.

Parameters
sstring buffer to be modified

Definition at line 55 of file case.c.

◆ db_nocase_compare()

int db_nocase_compare ( const char *  a,
const char *  b 
)

Compare strings case-insensitive.

Parameters
a,bstring buffers to be compared
Returns
0 strings equal
1 otherwise

Definition at line 69 of file case.c.

Referenced by db_convert_Cstring_to_value_datetime().