Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
/* NetRexx */
|
||||
|
||||
options replace format comments java crossref savelog symbols
|
||||
|
||||
import java.text.MessageFormat
|
||||
import java.text.FieldPosition
|
||||
|
||||
useBif()
|
||||
useMessageFormat()
|
||||
|
||||
return
|
||||
|
||||
method useBif public static
|
||||
|
||||
st = "Mary had a %1$ lamb."
|
||||
si = 'little'
|
||||
|
||||
say st.changestr('%1$', si)
|
||||
|
||||
return
|
||||
|
||||
method useMessageFormat public static
|
||||
|
||||
result = StringBuffer('')
|
||||
|
||||
args = Object [ -
|
||||
Object Integer(7), -
|
||||
Object Date(), -
|
||||
Object 'a disturbance in the Force' -
|
||||
]
|
||||
msgfmt = MessageFormat('At {1, time} on {1, date}, there was {2} on planet {0, number, integer}.')
|
||||
result = msgfmt.format(args, result, FieldPosition(0))
|
||||
say result
|
||||
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue