Changes between Version 20 and Version 21 of StandardLibraryExtensionMethods
- Timestamp:
- 09/23/12 05:00:57 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StandardLibraryExtensionMethods
v20 v21 80 80 assert 'X'.count(c'x')==0 # case sensitive 81 81 assert ' ! ! '.count(c'!')==2 82 83 def count(substring as String) as int 84 """ Return a count of the number of occurrences of the substring in this string. """ 85 test 86 assert ''.count('aoeu') == 0 87 assert 'x'.count('x') == 1 88 assert 'xyxy'.count('xy') == 2 89 assert 'xyxy'.count('a') == 0 82 90 83 91 def isCapitalized as bool