Return
Batch Text Replacer - BrineSoft Online Help Prev Page Prev Page
Batch Text Replacer
Supported File Types
Back-up of Files
File Encoding
Normalize White Spaces
Ignore White Spaces
Setting It Up
Folders
Files
Strings
Options
Working with Wildcards
Command Line Options
Purchase the Product
Register the Product
Registration Benefits
System Requirements
 BrineSoft Main Page | Batch Text Replacer Page | Download this Help File

Normalize White Spaces

In texts such as scripts or programming source code the white spaces are unimportant. To find and replace strings or blocks of a text with the same semantic the White Space Normalization is useful.
The algorithm replaces the white spaces (space, non-breaking space, end-of-line characters, tabulator) with spaces. Further, the sequential spaces are replaced with a single space. The following table shows possible strings that are evaluated to the same white space normalized strings.

Original string White-space normalized
function MyFunction()
{
return "a";
}
function MyFunction() { return "a"; }
function MyFunction()
{
    return "a";
}
function MyFunction()
    {
    return "a";
    }
function MyFunction()
    { return "a"; }
function MyFunction()    { return "a"; }

The white space normalization, if selected, is applied to the find-what string, and to the data read from the source file. It is not applied to the replace-with string.

 

See also
Overview, Setting It Up, Files, Strings, Ignore White Spaces