Changeset 2155 for trunk/kBuild/doc/QuickReference-kmk.txt
- Timestamp:
- Dec 29, 2008, 2:01:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/doc/QuickReference-kmk.txt
r2147 r2155 340 340 $(printf fmt, arg...) 341 341 342 Return the length of a string or a (unexpanded) variable:: 343 344 $(length string) 345 $(length-var var) 346 347 Find the position of ``needle`` in ``haystack``, returns 0 if not found. 348 Negative ``start`` indices are relative to the end of ``haystack``, while 349 positive ones are one based:: 350 351 $(pos needle, haystack[, start]) 352 $(lastpos needle, haystack[, start]) 353 354 Returns the specified substring. The ``start`` works like with ``$(pos )``. 355 If the substring is partially outside the ``string`` the result will be 356 padded with ``pad`` if present:: 357 358 $(substr string, start[, length[, pad]]) 359 360 Insert ``in`` into ``str`` at the specified position. ``n`` works like with 361 ``$(pos )``, except that ``0`` is the end of the string:: 362 363 $(insert in, str[, n[, length[, pad]]]) 364 365 Translate ``string`` exchanging characters in ``from-set`` with ``to-set``, 366 optionally completing ``to-set`` with ``pad-char`` if specified. If no 367 ``pad-char`` characters absent in ``to-set`` will be deleted:: 368 369 $(translate string, from-set[, to-set[, pad-char]]) 370 342 371 343 372 Functions for file names:
Note:
See TracChangeset
for help on using the changeset viewer.