ReNamer:Pascal Script:WideUpperCase

From den4b Wiki
Revision as of 16:56, 25 May 2009 by Krtek (talk | contribs) (Created page with '==WideUpperCase or How to uppercase the filename== In this chapter we will learn how to achieve goals similar to the Case rule. First, we will uppercase the filename and lowerc...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

WideUpperCase or How to uppercase the filename

In this chapter we will learn how to achieve goals similar to the Case rule.

First, we will uppercase the filename and lowercase the extention. We will use WideUpperCase and WideLowerCase functions that take a string as a parameter and return that string in proper case.

FileName:=WideUpperCase(WideExtractBaseName(FileName))+WideLowerCase(WideExtractFileExt(FileName));

We can also capitalize every word with WideCaseCapitalize function:

FileName:= WideCaseCapitalize(WideExtractBaseName(FileName))+ WideExtractFileExt(FileName);

or invert case:

FileName:= WideCaseInvert(FileName);

Making only first letter capital is a bit more complex and will be described in the next chapter.