home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / m4-1.4-src.tgz / tar.out / fsf / m4 / checks / 48.patsubst < prev    next >
Text File  |  1996-09-28  |  375b  |  10 lines

  1. dnl ../doc/m4.texinfo:2621: Origin of test
  2. define(`upcase', `translit(`$*', `a-z', `A-Z')')dnl
  3. define(`downcase', `translit(`$*', `A-Z', `a-z')')dnl
  4. define(`capitalize1',
  5.      `regexp(`$1', `^\(\w\)\(\w*\)', `upcase(`\1')`'downcase(`\2')')')dnl
  6. define(`capitalize',
  7.      `patsubst(`$1', `\w+', `capitalize1(`\&')')')dnl
  8. capitalize(`GNUs not Unix')
  9. dnl @result{}Gnus Not Unix
  10.