Lines Matching refs:NSString
33 @interface NSString : NSObject interface
35 + (instancetype)localizedStringWithFormat:(NSString *)format, ...; argument
39 - (NSString *)localizedStringForKey:(NSString *)key
40 value:(NSString *)value
41 table:(NSString *)tableName; argument
44 - (void)accessibilitySetIdentification:(NSString *)ident; argument
45 - (void)setAccessibilityLabel:(NSString *)label; argument
48 @property(nullable, nonatomic, copy) NSString *text;
51 @property(strong) NSString *text;
54 @property (strong) NSString *toolTip;
60 NSString *ForceLocalized(NSString *str) category
65 NSString *CFNumberFormatterCreateStringWithNumber(float x); category
66 + (NSString *)forceLocalized:(NSString *)str
68 + (NSString *)takesLocalizedString:
69 (NSString *)__attribute__((annotate("takes_localized_nsstring")))str;
72 NSString *
73 takesLocalizedString(NSString *str
83 NSString *ForceLocalized(NSString *str) { return str; } category
86 + (NSString *)forceLocalized:(NSString *)str { argument
90 + (NSString *) takesLocalizedString:(NSString *)str { return str; } argument
93 + (NSString *)unLocalizedStringMethod {
99 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
109 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
120 NSString *bar = CFNumberFormatterCreateStringWithNumber(1);
127 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
138 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
150 NSString *bar = @"";
177 NSString *localizedString = NSLocalizedString(@"Hello", @"Comment");
179 NSString *combinedString =
180 [NSString localizedStringWithFormat:@"%@", localizedString];
187 - (void)testLocalizedStringAsArgument:(NSString *)argumentString { argument
194 - (void)testLocalizedStringAsArgumentOtherMethod:(NSString *)argumentString { argument
200 - (void)localizedStringAsArgument:(NSString *)argumentString { argument
212 NSString *bar = NSLocalizedString(@"Hello", @"Comment");
229 NSString *bar = @"UnlocalizedString";
245 …NSString *string = NSLocalizedString(@"LocalizedString", nil); // expected-warning {{Localized str…
246 …NSString *string2 = NSLocalizedString(@"LocalizedString", nil); // expected-warning {{Localized st…
247 …NSString *string3 = NSLocalizedString(@"LocalizedString", nil); // expected-warning {{Localized st…
251 …NSString *string = NSLocalizedString(@"LocalizedString", @""); // expected-warning {{Localized str…
252 …NSString *string2 = NSLocalizedString(@"LocalizedString", @" "); // expected-warning {{Localized s…
253 …NSString *string3 = NSLocalizedString(@"LocalizedString", @" "); // expected-warning {{Localized …
257 …NSString *string = NSLocalizedStringFromTable(@"LocalizedString", nil, @""); // expected-warning {…
258 …NSString *string2 = NSLocalizedStringFromTableInBundle(@"LocalizedString", nil, [[NSBundle alloc] …
259 …NSString *string3 = NSLocalizedStringWithDefaultValue(@"LocalizedString", nil, [[NSBundle alloc] i…
263 …NSString *string = YOLOC(@"Hello"); // expected-warning {{Localized string macro should include a …
264 …NSString *string2 = HOM(@"Hello"); // expected-warning {{Localized string macro should include a …
265 …NSString *string3 = NSLocalizedString((0 ? @"Critical" : @"Current"),nil); // expected-warning {{L…
269 …NSString *string = MyLocalizedStringInPCH(@"Hello"); // expected-warning {{Localized string macro …
276 NSString *string = KCLocalizedString(@"Hello",@""); // no-warning
277 NSString *string2 = KCLocalizedString(@"Hello",nil); // no-warning
278 NSString *string3 = KCLocalizedString(@"Hello",@"Comment"); // no-warning
282 NSString *string = POSSIBLE_FALSE_POSITIVE(@"Hello", nil); // no-warning
283 NSString *string2 = POSSIBLE_FALSE_POSITIVE(@"Hello", @"Hello"); // no-warning
287 NSString *localized = NSLocalizedString(@"Hello", @"World");
288 NSString *alsoLocalized = [LocalizationTestSuite takesLocalizedString:localized]; // no-warning
289 …NSString *stillLocalized = [LocalizationTestSuite takesLocalizedString:alsoLocalized]; // no-warni…