From c202861e939e64336fd2eb2efc614cbbeeb8bf8e Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 14 Feb 2013 09:54:52 +0000 Subject: correct fix for [3590] git-svn-id: http://svn.miranda-ng.org/main/trunk@3595 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/parse_str.cpp | 76 ++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'plugins/Variables/src/parse_str.cpp') diff --git a/plugins/Variables/src/parse_str.cpp b/plugins/Variables/src/parse_str.cpp index d8490f6c82..3eb6314183 100644 --- a/plugins/Variables/src/parse_str.cpp +++ b/plugins/Variables/src/parse_str.cpp @@ -844,44 +844,44 @@ static TCHAR *parseExtratext(ARGUMENTSINFO *ai) int registerStrTokens() { - registerIntToken(_T(CAPS), parseCaps, TRF_FUNCTION, Translate("String Functions\t(x)\tconverts each first letter of a word to uppercase, all others to lowercase")); - registerIntToken(_T(CAPS2), parseCaps2, TRF_FUNCTION, Translate("String Functions\t(x)\tconverts each first letter of a word to uppercase")); - registerIntToken(_T(CRLF), parseCrlf, TRF_FUNCTION, Translate("String Functions\t()\tinserts 'end of line' character")); - registerIntToken(_T(EXTRATEXT), parseExtratext, TRF_FIELD, Translate("String Functions\tdepends on calling plugin")); - registerIntToken(_T(EOL2CRLF), parseEolToCrlf, TRF_FUNCTION, Translate("String Functions\t(x)\tReplace all occurrences of \\n (Unix) by \\r\\n (Windows)")); - registerIntToken(_T(FIXEOL), parseFixeol, TRF_FUNCTION, Translate("String Functions\t(x,y)\tcuts x after the first line and appends y (y is optional)")); - registerIntToken(_T(FIXEOL2), parseFixeol2, TRF_FUNCTION, Translate("String Functions\t(x,y)\treplaces all end of line characters by y (y is optional)")); - registerIntToken(_T(INSERT), parseInsert, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tinserts string y at position z in string x")); - registerIntToken(_T(LEFT), parseLeft, TRF_FUNCTION, Translate("String Functions\t(x,y)\ttrims x to length y, keeping first y characters")); - registerIntToken(_T(LEN), parseLen, TRF_FUNCTION, Translate("String Functions\t(x)\tlength of x")); - registerIntToken(_T(LINECOUNT), parseLineCount, TRF_FUNCTION, Translate("String Functions\t(x)\tthe number of lines in string x")); - registerIntToken(_T(LONGEST), parseLongest, TRF_FUNCTION, Translate("String Functions\t(x,y,...)\tthe longest string of the arguments")); - registerIntToken(_T(LOWER), parseLower, TRF_FUNCTION, Translate("String Functions\t(x)\tconverts x to lowercase")); - registerIntToken(_T(NOOP), parseNoOp, TRF_FUNCTION, Translate("String Functions\t(x)\tno operation, x as given")); - registerIntToken(_T(PAD), parsePad, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tpads x to length y prepending character z (z is optional)")); - registerIntToken(_T(PADRIGHT), parsePadright, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tpads x to length y appending character z (z is optional)")); - registerIntToken(_T(PADCUT), parsePadcut, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tpads x to length y prepending character z, or cut if x is longer (z is optional)")); - registerIntToken(_T(PADCUTRIGHT), parsePadcutright, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tpads x to length y appending character z, or cut if x is longer (z is optional)")); - registerIntToken(_T(REPEAT), parseRepeat, TRF_FUNCTION, Translate("String Functions\t(x,y)\trepeats x y times")); - registerIntToken(_T(REPLACE), parseReplace, TRF_FUNCTION, Translate("String Functions\t(x,y,z,...)\treplace all occurrences of y in x with z, multiple y and z arguments allowed")); - registerIntToken(_T(RIGHT), parseRight, TRF_FUNCTION, Translate("String Functions\t(x,y)\ttrims x to length y, keeping last y characters")); - registerIntToken(_T(SCROLL), parseScroll, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tmoves string x, z characters to the left and trims it to y characters")); - registerIntToken(_T(STRCMP), parseStrcmp, TRF_FUNCTION, Translate("String Functions\t(x,y)\tTRUE if x equals y")); - registerIntToken(_T(STRMCMP), parseStrmcmp, TRF_FUNCTION, Translate("String Functions\t(x,y,...)\tTRUE if x equals any of the following arguments")); - registerIntToken(_T(STRNCMP), parseStrncmp, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tTRUE if the first z characters of x equal y")); - registerIntToken(_T(STRICMP), parseStricmp, TRF_FUNCTION, Translate("String Functions\t(x,y)\tTRUE if x equals y, ignoring case")); - registerIntToken(_T(STRNICMP), parseStrnicmp, TRF_FUNCTION, Translate("String Functions\t(x,y)\tTRUE if the first z characters of x equal y, ignoring case")); - registerIntToken(_T(SHORTEST), parseShortest, TRF_FUNCTION, Translate("String Functions\t(x,y,...)\tthe shortest string of the arguments")); - registerIntToken(_T(STRCHR), parseStrchr, TRF_FUNCTION, Translate("String Functions\t(x,y)\tlocation of first occurrence of character y in string x")); - registerIntToken(_T(STRRCHR), parseStrrchr, TRF_FUNCTION, Translate("String Functions\t(x,y)\tlocation of last occurrence of character y in string x")); - registerIntToken(_T(STRSTR), parseStrstr, TRF_FUNCTION, Translate("String Functions\t(x,y)\tlocation of first occurrence of string y in x")); - registerIntToken(_T(SUBSTR), parseSubstr, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\tsubstring of x starting from position y to z")); - registerIntToken(_T(SELECT), parseSelect, TRF_FUNCTION, Translate("String Functions\t(x,y,...)\tthe xth string of the arguments")); - registerIntToken(_T(SWITCH), parseSwitch, TRF_FUNCTION, Translate("String Functions\t(x,y,z,...)\tz if y equals x, multiple y and z arguments allowed")); - registerIntToken(_T(TRIM), parseTrim, TRF_FUNCTION, Translate("String Functions\t(x)\tremoves white spaces in before and after x")); - registerIntToken(_T(TAB), parseTab, TRF_FUNCTION, Translate("String Functions\t(x)\tinserts x tab characters (x is optional)")); - registerIntToken(_T(UPPER), parseUpper, TRF_FUNCTION, Translate("String Functions\t(x)\tconverts x to upper case")); - registerIntToken(_T(WORD), parseWord, TRF_FUNCTION, Translate("String Functions\t(x,y,z)\twords (separated by white spaces) number y to z from string x (z is optional)")); + registerIntToken(_T(CAPS), parseCaps, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("converts each first letter of a word to uppercase, all others to lowercase")); + registerIntToken(_T(CAPS2), parseCaps2, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("converts each first letter of a word to uppercase")); + registerIntToken(_T(CRLF), parseCrlf, TRF_FUNCTION, LPGEN("String Functions")"\t()\t"LPGEN("inserts 'end of line' character")); + registerIntToken(_T(EXTRATEXT), parseExtratext, TRF_FIELD, LPGEN("String Functions")"\t"LPGEN("depends on calling plugin")); + registerIntToken(_T(EOL2CRLF), parseEolToCrlf, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("Replace all occurrences of \\n (Unix) by \\r\\n (Windows)")); + registerIntToken(_T(FIXEOL), parseFixeol, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("cuts x after the first line and appends y (y is optional)")); + registerIntToken(_T(FIXEOL2), parseFixeol2, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("replaces all end of line characters by y (y is optional)")); + registerIntToken(_T(INSERT), parseInsert, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("inserts string y at position z in string x")); + registerIntToken(_T(LEFT), parseLeft, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("trims x to length y, keeping first y characters")); + registerIntToken(_T(LEN), parseLen, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("length of x")); + registerIntToken(_T(LINECOUNT), parseLineCount, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("the number of lines in string x")); + registerIntToken(_T(LONGEST), parseLongest, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,...)\t"LPGEN("the longest string of the arguments")); + registerIntToken(_T(LOWER), parseLower, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("converts x to lowercase")); + registerIntToken(_T(NOOP), parseNoOp, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("no operation, x as given")); + registerIntToken(_T(PAD), parsePad, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("pads x to length y prepending character z (z is optional)")); + registerIntToken(_T(PADRIGHT), parsePadright, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("pads x to length y appending character z (z is optional)")); + registerIntToken(_T(PADCUT), parsePadcut, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("pads x to length y prepending character z, or cut if x is longer (z is optional)")); + registerIntToken(_T(PADCUTRIGHT), parsePadcutright, TRF_FUNCTION, LPGEN("String Functions")"\t"LPGEN("(x,y,z)\tpads x to length y appending character z, or cut if x is longer (z is optional)")); + registerIntToken(_T(REPEAT), parseRepeat, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("repeats x y times")); + registerIntToken(_T(REPLACE), parseReplace, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z,...)\t"LPGEN("replace all occurrences of y in x with z, multiple y and z arguments allowed")); + registerIntToken(_T(RIGHT), parseRight, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("trims x to length y, keeping last y characters")); + registerIntToken(_T(SCROLL), parseScroll, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("moves string x, z characters to the left and trims it to y characters")); + registerIntToken(_T(STRCMP), parseStrcmp, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("TRUE if x equals y")); + registerIntToken(_T(STRMCMP), parseStrmcmp, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,...)\t"LPGEN("TRUE if x equals any of the following arguments")); + registerIntToken(_T(STRNCMP), parseStrncmp, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("TRUE if the first z characters of x equal y")); + registerIntToken(_T(STRICMP), parseStricmp, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("TRUE if x equals y, ignoring case")); + registerIntToken(_T(STRNICMP), parseStrnicmp, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("TRUE if the first z characters of x equal y, ignoring case")); + registerIntToken(_T(SHORTEST), parseShortest, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,...)\t"LPGEN("the shortest string of the arguments")); + registerIntToken(_T(STRCHR), parseStrchr, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("location of first occurrence of character y in string x")); + registerIntToken(_T(STRRCHR), parseStrrchr, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("location of last occurrence of character y in string x")); + registerIntToken(_T(STRSTR), parseStrstr, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y)\t"LPGEN("location of first occurrence of string y in x")); + registerIntToken(_T(SUBSTR), parseSubstr, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("substring of x starting from position y to z")); + registerIntToken(_T(SELECT), parseSelect, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,...)\t"LPGEN("the xth string of the arguments")); + registerIntToken(_T(SWITCH), parseSwitch, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z,...)\t"LPGEN("z if y equals x, multiple y and z arguments allowed")); + registerIntToken(_T(TRIM), parseTrim, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("removes white spaces in before and after x")); + registerIntToken(_T(TAB), parseTab, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("inserts x tab characters (x is optional)")); + registerIntToken(_T(UPPER), parseUpper, TRF_FUNCTION, LPGEN("String Functions")"\t(x)\t"LPGEN("converts x to upper case")); + registerIntToken(_T(WORD), parseWord, TRF_FUNCTION, LPGEN("String Functions")"\t(x,y,z)\t"LPGEN("words (separated by white spaces) number y to z from string x (z is optional)")); return 0; } -- cgit v1.2.3