Lines Matching refs:NSString
27 @interface NSString : NSObject interface
29 + (instancetype)localizedStringWithFormat:(NSString *)format, ...; argument
33 - (NSString *)localizedStringForKey:(NSString *)key
34 value:(NSString *)value
35 table:(NSString *)tableName; argument
38 - (void)accessibilitySetIdentification:(NSString *)ident; argument
39 - (void)setAccessibilityLabel:(NSString *)label; argument
42 @property(nullable, nonatomic, copy) NSString *text;
45 @property(strong) NSString *text;
48 @property (strong) NSString *toolTip;
54 NSString *ForceLocalized(NSString *str) category
59 NSString *CFNumberFormatterCreateStringWithNumber(float x); category
60 + (NSString *)forceLocalized:(NSString *)str
69 NSString *ForceLocalized(NSString *str) { return str; } category
72 + (NSString *)forceLocalized:(NSString *)str { argument
77 + (NSString *)unLocalizedStringMethod {
83 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
93 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
104 NSString *bar = CFNumberFormatterCreateStringWithNumber(1);
111 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
122 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
134 NSString *bar = @"";
161 NSString *localizedString = NSLocalizedString(@"Hello", @"Comment");
163 NSString *combinedString =
164 [NSString localizedStringWithFormat:@"%@", localizedString];
171 - (void)testLocalizedStringAsArgument:(NSString *)argumentString { argument
178 - (void)testLocalizedStringAsArgumentOtherMethod:(NSString *)argumentString { argument
184 - (void)localizedStringAsArgument:(NSString *)argumentString { argument
196 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
213 NSString *bar = @"UnlocalizedString";
229 …NSString *string = NSLocalizedString(@"LocalizedString", nil); // expected-warning {{Localized str…
230 …NSString *string2 = NSLocalizedString(@"LocalizedString", nil); // expected-warning {{Localized st…
231 …NSString *string3 = NSLocalizedString(@"LocalizedString", nil); // expected-warning {{Localized st…
235 …NSString *string = NSLocalizedString(@"LocalizedString", @""); // expected-warning {{Localized str…
236 …NSString *string2 = NSLocalizedString(@"LocalizedString", @" "); // expected-warning {{Localized s…
237 …NSString *string3 = NSLocalizedString(@"LocalizedString", @" "); // expected-warning {{Localized …
241 …NSString *string = NSLocalizedStringFromTable(@"LocalizedString", nil, @""); // expected-warning {…
242 …NSString *string2 = NSLocalizedStringFromTableInBundle(@"LocalizedString", nil, [[NSBundle alloc] …
243 …NSString *string3 = NSLocalizedStringWithDefaultValue(@"LocalizedString", nil, [[NSBundle alloc] i…
247 …NSString *string = YOLOC(@"Hello"); // expected-warning {{Localized string macro should include a …
248 …NSString *string2 = HOM(@"Hello"); // expected-warning {{Localized string macro should include a …
249 …NSString *string3 = NSLocalizedString((0 ? @"Critical" : @"Current"),nil); // expected-warning {{L…
256 NSString *string = KCLocalizedString(@"Hello",@""); // no-warning
257 NSString *string2 = KCLocalizedString(@"Hello",nil); // no-warning
258 NSString *string3 = KCLocalizedString(@"Hello",@"Comment"); // no-warning
262 NSString *string = POSSIBLE_FALSE_POSITIVE(@"Hello", nil); // no-warning
263 NSString *string2 = POSSIBLE_FALSE_POSITIVE(@"Hello", @"Hello"); // no-warning