Skip to content

Commit 051e2aa

Browse files
committed
Declare msStringInitCap() and msStringFirstCap(), and add doc
1 parent a6dac28 commit 051e2aa

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

mapserver.h

+2
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,8 @@ void msPopulateTextSymbolForLabelAndString(textSymbolObj *ts, labelObj *l, char
21132113
MS_DLL_EXPORT char *msIntToString(int value);
21142114
MS_DLL_EXPORT void msStringToUpper(char *string);
21152115
MS_DLL_EXPORT void msStringToLower(char *string);
2116+
MS_DLL_EXPORT void msStringInitCap(char *string);
2117+
MS_DLL_EXPORT void msStringFirstCap(char *string);
21162118
MS_DLL_EXPORT int msEncodeChar(const char);
21172119
MS_DLL_EXPORT char *msEncodeUrlExcept(const char*, const char);
21182120
MS_DLL_EXPORT char *msEncodeUrl(const char*);

mapstring.c

+8
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ void msStringToLower(char *string)
414414
}
415415
}
416416

417+
/**
418+
* Force the first character to uppercase and the rest of the characters to
419+
* lower case for EACH word in the string.
420+
*/
417421
void msStringInitCap(char *string)
418422
{
419423
int i;
@@ -433,6 +437,10 @@ void msStringInitCap(char *string)
433437
}
434438
}
435439

440+
/**
441+
* Force the first character to uppercase for the FIRST word in the string
442+
* and the rest of the characters to lower case.
443+
*/
436444
void msStringFirstCap(char *string)
437445
{
438446
int i;

0 commit comments

Comments
 (0)