https://issues.apache.org/ooo/show_bug.cgi?id=123862

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from [email protected] ---
Hi, I would like to work on this simple task to get an overview of the various
modules.

I plan to use eclipse cdt
search the variants with regexp
check the type in the ide and replace with regexp groups.

first analysis:
regexp for first 5 variants
"(\s*(!|=)=\s*OU?String\s*\(\s*\)|\.(equals(Ascii)?|compareTo(Ascii)?)\s*\(\s*(""|OU?String\s*\((\s*""\s*)?\))?\s*\))"
72 occurrences

last 4 variants:
"(\s*|\.)getLength\s*\(\s*\)\s*(>\s*0|>=\s*1|==\s*0|!=\s*0|<\s*1)"
>0, >=1, !=0
<1, <=0, ==0
3432 occurrences
* findings include build generated files

common types with getLenght() method
most are O*String
Sequence <T> ( has similar method hasElements() )
O*StringBuffer


in most cases it would be a simple replacement
some cases need fix for brackets
if ( a && (b.getLenght() == 0) ) -> if ( a && b.isEmpty() )
few cases where neatly indentations need fixes

How would you like negations formated?
a) !a.isEmpty()
b) ! a.isEmpty()
c) ( !a.isEmpty() )
d) ?

I planned to make one patch file per module, maybe bundle small modules in one

please comment

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

Reply via email to