Last change
on this file since 36609 was 36609, checked in by anupama, 20 months ago |
committing modified perl code for heritage
|
File size:
339 bytes
|
Line | |
---|
1 | package customsorttools;
|
---|
2 | use strict;
|
---|
3 | use Unicode::Normalize;
|
---|
4 |
|
---|
5 | # overwrite this so we don't use comma format thing.
|
---|
6 | sub format_string_name_en_poo {
|
---|
7 | my ($stringref) = @_;
|
---|
8 |
|
---|
9 |
|
---|
10 | $$stringref =~ s/&\S+;//g;
|
---|
11 |
|
---|
12 | $$stringref =~ s/[[:punct:]]//g;
|
---|
13 | $$stringref =~ s/\s+/ /g;
|
---|
14 | $$stringref =~ s/^\s+//;
|
---|
15 | $$stringref =~ s/\s+$//;
|
---|
16 |
|
---|
17 | }
|
---|
18 |
|
---|
19 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.