Changes between Version 19 and Version 20 of StandardLibraryExtensionMethods
- Timestamp:
- 09/23/12 05:00:18 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StandardLibraryExtensionMethods
v19 v20 42 42 extend String 43 43 44 def before(sep as String) as String 45 test 46 s = 'abc|de' 47 assert s.before('|') == 'abc' 48 assert s.before('=') == 'abc|de' 49 assert '|abcde'.before('|') == '' 50 assert 'abcde|'.before('|') == 'abcde' 51 52 def after(sep as String) as String 53 test 54 s = 'abc|de' 55 assert s.after('|') == 'de' 56 assert s.after('=') == '' 57 assert '|abcde'.after('|') == 'abcde' 58 assert 'abcde|'.after('|') == '' 59 44 60 def capitalized as String 45 61 """