- Subject: Re: String type + integer type
- From: Guenter Milde <milde@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Jan 2003 09:02:46 +0100 (CET)
On Sat, 4 Jan 2003 21:28:02 +0100 wrote Morten Bo Johansen <mojo@xxxxxxxx>:
> I am trying to create a function that delimits plural msgstr's
> in po-files.
...
You might try something like this
> define mark_msgstr_plurals ()
> {
> operate_on_strings (); % narrow to a block of strings
> if (re_fsearch ("^msgstr[ ]*\\["))
> {
variable n = read_mini("Enter number of msgstr to edit:", "", "");
re_fsearch ("^msgstr[ ]*\\[" + string(n);
fsearch ("\"");
push_mark ();
...
}
See the help-texts for read_mini and string for further explanation.
Hope it helps
Günter
--
Milde at ife.et.tu-dresden.de
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2003 date index]
[2003 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]