Home | History | Annotate | Download | only in Scripts

Lines Matching refs:renames

98 my %renames = (
99 # Renames go here in the form of:
171 # Sort the keys of the renames hash in order of decreasing length. This
172 # handles the case where some of the renames are substrings of others;
174 my @sortedRenameKeys = sort { length($b) - length($a) } keys %renames;
183 # Find the longest key in %renames which matches this more permissive regexp.
186 # renames are substrings of others. The only reason we don't do this all the
187 # time is to avoid accidental file renamings for short, non-DOM renames.
190 $newFile = "$1$renames{$2}$3" if $file =~ /^(.*\/\w*)($key)(\w*\.\w+)$/;
196 $file = "$1$renames{$2}$3" if $file =~ /^(.*\/)(\w+)(\.\w+)$/ && $renames{$2};
233 $newContents =~ s/\b(JS|V8|to|)$from/$1$renames{$from}/g;
237 $newContents =~ s/\b$from(?!["\w])/$renames{$from}/g; # this " unconfuses Xcode syntax highlighting