fork(3) download
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3. #import <Foundation/Foundation.h>
  4.  
  5. @implementation TestObj
  6. int main()
  7. {
  8. NSString * s = @"_h___";
  9. NSPredicate * predicat = [NSPredicate predicateWithFormat:@"SELF MATCHES '(?s).*\\p{L}.*'"];
  10. if ([predicat evaluateWithObject:s]) {
  11. NSLog (@"yes");
  12. }
  13. else
  14. {
  15. NSLog (@"no");
  16. }
  17. return 0;
  18. }
  19. @end
Success #stdin #stdout #stderr 0.03s 42848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-23 08:44:49.784 prog[6159] autorelease called without pool for object (0x9de75d0) of class GSMutableArray in thread <NSThread: 0x9da9800>
2016-05-23 08:44:49.785 prog[6159] autorelease called without pool for object (0x9e16448) of class GSArrayEnumerator in thread <NSThread: 0x9da9800>
2016-05-23 08:44:49.785 prog[6159] autorelease called without pool for object (0x9de8138) of class GSUnicodeSubString in thread <NSThread: 0x9da9800>
2016-05-23 08:44:49.785 prog[6159] autorelease called without pool for object (0x9dfff58) of class GSConstantValueExpression in thread <NSThread: 0x9da9800>
2016-05-23 08:44:49.785 prog[6159] autorelease called without pool for object (0x9df5e88) of class NSComparisonPredicate in thread <NSThread: 0x9da9800>
2016-05-23 08:44:49.792 prog[6159] yes