Extract String Tool

Extract String Tool

This tool can extract strings from current Pascal unit with certain scan and naming option, make declarations and insert into unit, and replacel strings with names. Now support Delphi and C++Builder.

The main window shows as below:

- Prefix: Set the prefix for string names.

- Style: Set the case rule for string names, such as upper, lower, upper first letter.

- PinYin Rule: This tool can use PinYin of Chinese Characters in strings as variable name. This options choose use full PinYin or just its first letter.

- Max Words: This tool can use English word in strings as variable name. This option sets the maximum word count for one name.

- Max PinYin: This tool can use PinYin of Chinese Characters in strings as variable name. This option sets the maximum Chinese character count for one name.

- Use UnderLine as Word Separator: If checked, "_" will be used as separator in names, otherwise no separator.

- Ignore Single Char Strings: If checked, the single char strings will be ignored when scannning.

- Ignore Simple Format Strings: If checked, the simple format strings such as "%d" will be ignored when scannning.

- Show Preview: Check to show the code preview window at the bottom.

- Scan: Press this button to scan current source and extract strings to declarations according to scan and name options, and list the results in the list for renaming and replacement.

- Make Type: Choose the extracted string declarations type, such as var, const or resourcestring for Pascal and AnsiString, char * for C/C++.

- To Area: Choose to put extracted string declarations to interface or implementation in Pascal.

- Copy: Copy extracted string declarations to clipboard. Do not modify source.

- Replace: Insert extracted string declarations to the source, and replace strings with corresponding names.

- Close: Close this window.

- Help: Show this Help.

Links

CnWizards Settings

Coding Toolset Settings

About CnWizards

Copyrights 2001-2025 CnPack Team