Hello,

I have a simple macro which is supposed to receive a netMask (say
255.255.0.0) and convert it to an inverseMask 0.0.255.255.

The first problem is: how can I split on "."? I tried ".", "\.", "\\."
and so forth but none worked.

The second question is: given a string "128", how can I subtract it
from 255? I tried:

#set( $byte = "128" )
#set( $result = 255 - Integer.parseInt($byte) )

But, velocity doesn't like Integer.parseInt() static method.

Thanks in advance,

-- 
Ramin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to