void OrderedOfString_sequentialNumbers (OrderedOfString me, long n) { Collection_removeAllItems (me); for (long i = 1; i <= n; i++) { char32 s[40]; Melder_sprint (s,40, i); autoSimpleString str = SimpleString_create (s); Collection_addItem (me, str.transfer()); } }
void OrderedOfString_sequentialNumbers (I, long n) { iam (OrderedOfString); Collection_removeAllItems (me); for (long i = 1; i <= n; i++) { wchar_t s[20]; swprintf (s, 20, L"%ld", i); autoSimpleString str = SimpleString_create (s); Collection_addItem (me, str.transfer()); } }