Skip to content
Permalink
Browse files

Declare msStringInitCap() and msStringFirstCap(), and add doc

  • Loading branch information
rouault committed Oct 2, 2013
1 parent a6dac28 commit 051e2aa945c12cf768dcb9049a517daf34e6248d
Showing with 10 additions and 0 deletions.
  1. +2 −0 mapserver.h
  2. +8 −0 mapstring.c
@@ -2113,6 +2113,8 @@ void msPopulateTextSymbolForLabelAndString(textSymbolObj *ts, labelObj *l, char
MS_DLL_EXPORT char *msIntToString(int value);
MS_DLL_EXPORT void msStringToUpper(char *string);
MS_DLL_EXPORT void msStringToLower(char *string);
MS_DLL_EXPORT void msStringInitCap(char *string);
MS_DLL_EXPORT void msStringFirstCap(char *string);
MS_DLL_EXPORT int msEncodeChar(const char);
MS_DLL_EXPORT char *msEncodeUrlExcept(const char*, const char);
MS_DLL_EXPORT char *msEncodeUrl(const char*);
@@ -414,6 +414,10 @@ void msStringToLower(char *string)
}
}

/**
* Force the first character to uppercase and the rest of the characters to
* lower case for EACH word in the string.
*/
void msStringInitCap(char *string)
{
int i;
@@ -433,6 +437,10 @@ void msStringInitCap(char *string)
}
}

/**
* Force the first character to uppercase for the FIRST word in the string
* and the rest of the characters to lower case.
*/
void msStringFirstCap(char *string)
{
int i;

0 comments on commit 051e2aa

Please sign in to comment.
You can’t perform that action at this time.