Artifact fa8b89b835ee6d19bc854cbf6799b86f9c882cb833ac00d1747bfbbc07a72bc9:
- File
src/OFString+Cube.m
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 615) [annotate] [blame] [check-ins using]
#import "OFString+Cube.h" #include "cube.h" @implementation OFString (Cube) - (int)cube_intValue { @try { return self.intValue; } @catch (OFInvalidFormatException *e) { conoutf(@"invalid value: %@", self); return 0; } @catch (OFOutOfRangeException *e) { conoutf(@"invalid value: %@", self); return 0; } } - (int)cube_intValueWithBase: (unsigned char)base { @try { return [self intValueWithBase: base]; } @catch (OFInvalidFormatException *e) { conoutf(@"invalid value: %@", self); return 0; } @catch (OFOutOfRangeException *e) { conoutf(@"invalid value: %@", self); return 0; } } @end