PageRenderTime 436ms queryTime 76ms sortTime 130ms getByIdsTime 82ms findMatchingLines 14ms

100+ results results for 'nsstring' (436 ms)

Not the results you expected?
FMGVideoPlayView.m https://gitlab.com/Mr.Tomato/avplayer | Objective C | 485 lines
                    
112#pragma mark - 观察者对应的方法
                    
113- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
                    
114{
                    
144#pragma mark - 设置播放的视频
                    
145- (void)setUrlString:(NSString *)urlString
                    
146{
                    
309
                    
310- (NSString *)timeString
                    
311{
                    
397    
                    
398    NSString *durationString = [NSString stringWithFormat:@"%02ld:%02ld", dMin, dSec];
                    
399    NSString *currentString = [NSString stringWithFormat:@"%02ld:%02ld", cMin, cSec];
                    
436        
                    
437        NSString* emotionName = [NSString stringWithFormat:@"smile_%zd", arc4random_uniform(90)];
                    
438        UIImage* emotion = [UIImage imageNamed:emotionName];
                    
                
FBSDKAppEventsUtility.m https://gitlab.com/daniel.colceag/MonkeyNews | Objective C | 313 lines
                    
154
                    
155+ (void)ensureOnMainThread:(NSString *)methodName className:(NSString *)className
                    
156{
                    
249{
                    
250  [[self class] ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass(self)];
                    
251  NSDictionary *data = @{ FBSDK_APPEVENTSUTILITY_ANONYMOUSID_KEY : anonymousID };
                    
259
                    
260+ (NSString *)persistenceFilePath:(NSString *)filename
                    
261{
                    
269{
                    
270  [[self class] ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass(self)];
                    
271  NSString *file = [[self class] persistenceFilePath:FBSDK_APPEVENTSUTILITY_ANONYMOUSIDFILENAME];
                    
271  NSString *file = [[self class] persistenceFilePath:FBSDK_APPEVENTSUTILITY_ANONYMOUSIDFILENAME];
                    
272  NSString *content = [[NSString alloc] initWithContentsOfFile:file
                    
273                                                      encoding:NSASCIIStringEncoding
                    
                
BFTask.m https://gitlab.com/daniel.colceag/MonkeyNews | Objective C | 472 lines
                    
21
                    
22NSString *const BFTaskErrorDomain = @"bolts";
                    
23NSInteger const kBFMultipleErrorsError = 80175001;
                    
23NSInteger const kBFMultipleErrorsError = 80175001;
                    
24NSString *const BFTaskMultipleExceptionsException = @"BFMultipleExceptionsException";
                    
25
                    
446
                    
447- (NSString *)description {
                    
448    // Acquire the data from the locked properties
                    
451    BOOL faulted;
                    
452    NSString *resultDescription = nil;
                    
453
                    
457        faulted = self.faulted;
                    
458        resultDescription = completed ? [NSString stringWithFormat:@" result = %@", self.result] : @"";
                    
459    }
                    
                
MacVim.m https://github.com/alexlovelltroy/macvim.git | Objective C | 368 lines
                    
107
                    
108NSString *MMLogLevelKey     = @"MMLogLevel";
                    
109NSString *MMLogToStdErrKey  = @"MMLogToStdErr";
                    
112// (techincally this is a user default but should not be used as such).
                    
113NSString *MMNoWindowKey = @"MMNoWindow";
                    
114
                    
114
                    
115NSString *MMAutosaveRowsKey    = @"MMAutosaveRows";
                    
116NSString *MMAutosaveColumnsKey = @"MMAutosaveColumns";
                    
116NSString *MMAutosaveColumnsKey = @"MMAutosaveColumns";
                    
117NSString *MMRendererKey	       = @"MMRenderer";
                    
118
                    
119// Vim find pasteboard type (string contains Vim regex patterns)
                    
120NSString *VimFindPboardType = @"VimFindPboardType";
                    
121
                    
                
Changes.md https://github.com/GetMoPix/three20.git | Markdown | 337 lines
                    
44
                    
45* The parser used to always return NSMutableStrings, but may now return NSString instead, for strings with no escapes in them. This change speeded up the parser by about 30% on samsoffes' benchmark.
                    
46* Recent refactoring to clean up the code had negative impact on the performance in samsoffes' comparative benchmark. Most of this was reclaimed, but we are still a bit slower than beta1 in his test. Particularly for writing. (We are, however, not slowest.)
                    
86* [Issue 12][#12]: Added support for writing JSON to a data stream. This means you can write huge JSON documents to disk, or an HTTP destination, without having to hold the entire structure in memory. You can even generate it as you go, and just stream snapshots to an external process.
                    
87* [Issue 18][#18] & [27][#27]: Re-orient API to be NSData-based. The NSString-oriented API methods now delegates to this.
                    
88
                    
                
TTDefaultCSSStyleSheet.m https://github.com/GetMoPix/three20.git | Objective C | 399 lines
                    
28
                    
29NSString* kDefaultCSSPath = @"extThree20CSSStyle.bundle/stylesheets/default.css";
                    
30
                    
60                           @"to your project. If you didn't, ensure that it's being copied in "
                    
61                           @"the 'Copy Bundle Resources' phase.", NSStringFromClass([self class])];
                    
62        return nil;
                    
110///////////////////////////////////////////////////////////////////////////////////////////////////
                    
111- (BOOL)addStyleSheetFromDisk:(NSString*)filename ignoreCache:(BOOL)cache {
                    
112
                    
139///////////////////////////////////////////////////////////////////////////////////////////////////
                    
140- (BOOL)addStyleSheetFromDisk:(NSString*)filename {
                    
141  return [self addStyleSheetFromDisk:filename ignoreCache:NO];
                    
151///////////////////////////////////////////////////////////////////////////////////////////////////
                    
152-(void)applyCssFromSelector:(NSString*)selectorName toObject:(id<TTCSSApplyProtocol>)anObject {
                    
153	// Assert that the conforms with the protocol.
                    
                
TTCSSStyleSheet.m https://github.com/GetMoPix/three20.git | Objective C | 477 lines
                    
36NSString* kCssPropertyFont            = @"font";
                    
37NSString* kCssPropertyFontSize        = @"font-size";
                    
38NSString* kCssPropertyFontWeight      = @"font-weight";
                    
144
                    
145  for (NSString* selector in styleSheet.cssStyles) {
                    
146    NSDictionary* addingRuleSet   = [styleSheet.cssStyles objectForKey:selector];
                    
235            NSMutableString *merged = [NSMutableString string];
                    
236            for ( NSString* part in object ) {
                    
237                [merged appendString:part];
                    
241        }
                    
242        else if ( [object isKindOfClass:[NSString class]] ) {
                    
243            return object;
                    
284///////////////////////////////////////////////////////////////////////////////////////////////////
                    
285- (NSString*)selector:(NSString*)selector forState:(UIControlState)state {
                    
286	switch (state) {
                    
                
TTURLNavigatorPattern.m https://github.com/GetMoPix/three20.git | Objective C | 498 lines
                    
26#import "Three20Core/TTDebug.h"
                    
27#import "Three20Core/NSStringAdditions.h"
                    
28
                    
30
                    
31static NSString* kUniversalURLPattern = @"*";
                    
32
                    
94///////////////////////////////////////////////////////////////////////////////////////////////////
                    
95- (NSString *)description {
                    
96  if (nil != _targetClass) {
                    
96  if (nil != _targetClass) {
                    
97    return [NSString stringWithFormat:@"%@ => %@", _URL, _targetClass];
                    
98
                    
209    const char* selName = sel_getName(_selector);
                    
210    NSString* selectorName = [[NSString alloc] initWithBytesNoCopy:(char*)selName
                    
211                                             length:strlen(selName)
                    
                
TTURLMap.m https://github.com/GetMoPix/three20.git | Objective C | 537 lines
                    
61 */
                    
62- (NSString*)keyForClass:(Class)cls withName:(NSString*)name {
                    
63  const char* className = class_getName(cls);
                    
261///////////////////////////////////////////////////////////////////////////////////////////////////
                    
262- (void)from:(NSString*)URL parent:(NSString*)parentURL
                    
263        toSharedViewController:(id)target {
                    
272///////////////////////////////////////////////////////////////////////////////////////////////////
                    
273- (void)from:(NSString*)URL parent:(NSString*)parentURL
                    
274        toSharedViewController:(id)target selector:(SEL)selector {
                    
313///////////////////////////////////////////////////////////////////////////////////////////////////
                    
314- (void)from:(NSString*)URL parent:(NSString*)parentURL
                    
315        toModalViewController:(id)target selector:(SEL)selector transition:(NSInteger)transition {
                    
355///////////////////////////////////////////////////////////////////////////////////////////////////
                    
356- (void)from:(Class)cls name:(NSString*)name toURL:(NSString*)URL {
                    
357  TTURLGeneratorPattern* pattern = [[TTURLGeneratorPattern alloc] initWithTargetClass:cls];
                    
                
TTBaseNavigator.m https://github.com/GetMoPix/three20.git | Objective C | 1014 lines
                    
44
                    
45static NSString* kNavigatorHistoryKey           = @"TTNavigatorHistory";
                    
46static NSString* kNavigatorHistoryTimeKey       = @"TTNavigatorHistoryTime";
                    
46static NSString* kNavigatorHistoryTimeKey       = @"TTNavigatorHistoryTime";
                    
47static NSString* kNavigatorHistoryImportantKey  = @"TTNavigatorHistoryImportant";
                    
48
                    
49#ifdef __IPHONE_4_0
                    
50UIKIT_EXTERN NSString *const UIApplicationDidEnterBackgroundNotification
                    
51__attribute__((weak_import));
                    
51__attribute__((weak_import));
                    
52UIKIT_EXTERN NSString *const UIApplicationWillEnterForegroundNotification
                    
53__attribute__((weak_import));
                    
267                             isContainer: (BOOL)isContainer
                    
268                           parentURLPath: (NSString*)parentURLPath {
                    
269  if (controller == _rootViewController) {
                    
                
TTWebController.m https://github.com/GetMoPix/three20.git | Objective C | 461 lines
                    
54///////////////////////////////////////////////////////////////////////////////////////////////////
                    
55- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
                    
56	self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
                    
296- (BOOL)persistView:(NSMutableDictionary*)state {
                    
297  NSString* URL = self.URL.absoluteString;
                    
298  if (URL.length && ![URL isEqualToString:@"about:blank"]) {
                    
309- (void)restoreView:(NSDictionary*)state {
                    
310  NSString* URL = [state objectForKey:@"URL"];
                    
311  if (URL.length && ![URL isEqualToString:@"about:blank"]) {
                    
                
TTTextEditor.m https://github.com/GetMoPix/three20.git | Objective C | 486 lines
                    
140
                    
141  NSString* text = _textField.hidden ? _textView.text : _textField.text;
                    
142  if (!text.length) {
                    
406///////////////////////////////////////////////////////////////////////////////////////////////////
                    
407- (NSString*)text {
                    
408  if (_textView && !_textView.hidden) {
                    
417///////////////////////////////////////////////////////////////////////////////////////////////////
                    
418- (void)setText:(NSString*)text {
                    
419  _textField.text = _textView.text = text;
                    
426///////////////////////////////////////////////////////////////////////////////////////////////////
                    
427- (NSString*)placeholder {
                    
428  return _textField.placeholder;
                    
432///////////////////////////////////////////////////////////////////////////////////////////////////
                    
433- (void)setPlaceholder:(NSString*)placeholder {
                    
434  _textField.placeholder = placeholder;
                    
                
TTTextBarController.m https://github.com/GetMoPix/three20.git | Objective C | 520 lines
                    
40#import "Three20Core/TTCorePreprocessorMacros.h"
                    
41#import "Three20Core/NSStringAdditions.h"
                    
42#import "Three20Core/TTGlobalCore.h"
                    
60///////////////////////////////////////////////////////////////////////////////////////////////////
                    
61- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
                    
62	self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
                    
111///////////////////////////////////////////////////////////////////////////////////////////////////
                    
112- (void)showActivity:(NSString*)activityText {
                    
113}
                    
206
                    
207  NSString* delegate = [[TTNavigator navigator] pathForObject:_delegate];
                    
208  if (delegate) {
                    
212
                    
213  NSString* title = self.navigationItem.title;
                    
214
                    
                
TTTableViewController.m https://github.com/GetMoPix/three20.git | Objective C | 968 lines
                    
68///////////////////////////////////////////////////////////////////////////////////////////////////
                    
69- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
                    
70	self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
                    
121///////////////////////////////////////////////////////////////////////////////////////////////////
                    
122- (NSString*)defaultTitleForLoading {
                    
123  return TTLocalizedString(@"Loading...", @"");
                    
205///////////////////////////////////////////////////////////////////////////////////////////////////
                    
206- (void)fadingOutViewDidStop:(NSString*)animationID finished:(NSNumber*)finished
                    
207                     context:(void*)context {
                    
214///////////////////////////////////////////////////////////////////////////////////////////////////
                    
215- (void)hideMenuAnimationDidStop:(NSString*)animationID finished:(NSNumber*)finished
                    
216                         context:(void*)context {
                    
                
TTStyledTextLabel.m https://github.com/GetMoPix/three20.git | Objective C | 538 lines
                    
129    TTStyledBoxFrame* affectFrame = frame ? frame : _highlightedFrame;
                    
130    NSString* className = affectFrame.element.className;
                    
131    if (!className && [affectFrame.element isKindOfClass:[TTStyledLinkNode class]]) {
                    
162///////////////////////////////////////////////////////////////////////////////////////////////////
                    
163- (NSString*)combineTextFromFrame:(TTStyledTextFrame*)fromFrame
                    
164                          toFrame:(TTStyledTextFrame*)toFrame {
                    
                
TTPostController.m https://github.com/GetMoPix/three20.git | Objective C | 621 lines
                    
39#import "Three20Core/TTCorePreprocessorMacros.h"
                    
40#import "Three20Core/NSStringAdditions.h"
                    
41#import "Three20Core/TTGlobalCore.h"
                    
59///////////////////////////////////////////////////////////////////////////////////////////////////
                    
60- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
                    
61	self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
                    
120///////////////////////////////////////////////////////////////////////////////////////////////////
                    
121- (NSString*)stripWhitespace:(NSString*)text {
                    
122  if (nil != text) {
                    
170///////////////////////////////////////////////////////////////////////////////////////////////////
                    
171- (void)showActivity:(NSString*)activityText {
                    
172  if (nil == _activityView) {
                    
337
                    
338  NSString* delegate = [[TTNavigator navigator] pathForObject:_delegate];
                    
339  if (delegate) {
                    
                
TTPickerTextField.m https://github.com/GetMoPix/three20.git | Objective C | 519 lines
                    
31
                    
32static NSString* kEmpty = @" ";
                    
33static NSString* kSelected = @"`";
                    
186///////////////////////////////////////////////////////////////////////////////////////////////////
                    
187- (NSString*)labelForObject:(id)object {
                    
188  NSString* label = nil;
                    
191  }
                    
192  return label ? label : [NSString stringWithFormat:@"%@", object];
                    
193}
                    
252///////////////////////////////////////////////////////////////////////////////////////////////////
                    
253- (void)setText:(NSString*)text {
                    
254  if (_dataSource) {
                    
414
                    
415  NSString* label = [self labelForObject:object];
                    
416
                    
                
TTPhotoViewController.m https://github.com/GetMoPix/three20.git | Objective C | 999 lines
                    
72///////////////////////////////////////////////////////////////////////////////////////////////////
                    
73- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
                    
74	self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
                    
210  } else {
                    
211    self.title = [NSString stringWithFormat:
                    
212                  TTLocalizedString(@"%d of %d", @"Current page in photo browser (1 of 10)"),
                    
339///////////////////////////////////////////////////////////////////////////////////////////////////
                    
340- (void)showStatus:(NSString*)status {
                    
341  [_statusText release];
                    
362///////////////////////////////////////////////////////////////////////////////////////////////////
                    
363- (NSString*)URLForThumbnails {
                    
364  if ([self.photoSource respondsToSelector:@selector(URLValueWithName:)]) {
                    
375- (void)showThumbnails {
                    
376  NSString* URL = [self URLForThumbnails];
                    
377  if (!_thumbsController) {
                    
                
TTMessageController.m https://github.com/GetMoPix/three20.git | Objective C | 801 lines
                    
44#import "Three20Core/TTGlobalCoreRects.h"
                    
45#import "Three20Core/NSStringAdditions.h"
                    
46#import "Three20Core/TTGlobalCore.h"
                    
62///////////////////////////////////////////////////////////////////////////////////////////////////
                    
63- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
                    
64	self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
                    
407
                    
408  NSString* body = self.body;
                    
409  if (body) {
                    
437
                    
438  NSString* body = [state objectF
                    
                
TTButton.m https://github.com/GetMoPix/three20.git | Objective C | 487 lines
                    
79///////////////////////////////////////////////////////////////////////////////////////////////////
                    
80+ (TTButton*)buttonWithStyle:(NSString*)selector {
                    
81  TTButton* button = [[[self alloc] init] autorelease];
                    
87///////////////////////////////////////////////////////////////////////////////////////////////////
                    
88+ (TTButton*)buttonWithStyle:(NSString*)selector title:(NSString*)title {
                    
89  TTButton* button = [[[self alloc] init] autorelease];
                    
103- (id)keyForState:(UIControlState)state {
                    
104  static NSString* normalKey = @"normal";
                    
105  static NSString* highlighted = @"highlighted";
                    
105  static NSString* highlighted = @"highlighted";
                    
106  static NSString* selected = @"selected";
                    
107  static NSString* disabled = @"disabled";
                    
157///////////////////////////////////////////////////////////////////////////////////////////////////
                    
158- (NSString*)titleForCurrentState {
                    
159  TTButtonContent* content = [self contentForCurrentState];
                    
                
TTURLRequestQueue.m https://github.com/GetMoPix/three20.git | Objective C | 703 lines
                    
101 */
                    
102- (BOOL)dataExistsInBundle:(NSString*)URL {
                    
103  NSString* path = TTPathForBundleResource([URL substringFromIndex:9]);
                    
109///////////////////////////////////////////////////////////////////////////////////////////////////
                    
110- (BOOL)dataExistsInDocuments:(NSString*)URL {
                    
111  NSString* path = TTPathForDocumentsResource([URL substringFromIndex:12]);
                    
117///////////////////////////////////////////////////////////////////////////////////////////////////
                    
118- (NSData*)loadFromBundle:(NSString*)URL error:(NSError**)error {
                    
119  NSString* path = TTPathForBundleResource([URL substringFromIndex:9]);
                    
132///////////////////////////////////////////////////////////////////////////////////////////////////
                    
133- (NSData*)loadFromDocuments:(NSString*)URL error:(NSError**)error {
                    
134  NSString* path = TTPathForDocumentsResource([URL substringFromIndex:12]);
                    
147///////////////////////////////////////////////////////////////////////////////////////////////////
                    
148- (BOOL)loadFromCache: (NSString*)URL
                    
149             cacheKey: (NSString*)cacheKey
                    
                
TTURLCache.m https://github.com/GetMoPix/three20.git | Objective C | 708 lines
                    
45 */
                    
46+ (NSString*)cachePathWithName:(NSString*)name;
                    
47
                    
271///////////////////////////////////////////////////////////////////////////////////////////////////
                    
272- (NSString*)loadEtagFromCacheWithKey:(NSString*)key {
                    
273  NSString* path = [self etagCachePathForKey:key];
                    
337///////////////////////////////////////////////////////////////////////////////////////////////////
                    
338- (NSString*)cachePathForKey:(NSString*)key {
                    
339  return [_cachePath stringByAppendingPathComponent:key];
                    
343///////////////////////////////////////////////////////////////////////////////////////////////////
                    
344- (NSString*)etagCachePathForKey:(NSString*)key {
                    
345  return [self.etagCachePath stringByAppendingPathComponent:key];
                    
418 */
                    
419+ (NSString*)doubleImageURLPath:(NSString*)urlPath {
                    
420  if ([[urlPath substringToIndex:1] isEqualToString:@"."]) {
                    
                
TTRequestLoader.m https://github.com/GetMoPix/three20.git | Objective C | 448 lines
                    
100    // Strictly speaking, to be really conformant need to interpret %xx hex encoded entities.
                    
101    // The [NSString dataUsingEncoding] doesn't do that correctly, but most documents don't use that.
                    
102    // Skip for now.
                    
                
CoreAdditionTests.m https://github.com/GetMoPix/three20.git | Objective C | 574 lines
                    
103  for (int unicode = 0x000A; unicode <= 0x000D; ++unicode) {
                    
104    NSString* str = [NSString stringWithFormat:@"%C", unicode];
                    
105    STAssertTrue([str isWhitespaceAndNewlines],
                    
108
                    
109  NSString* str = [NSString stringWithFormat:@"%C", 0x0085];
                    
110  STAssertTrue([str isWhitespaceAndNewlines], @"Unicode string should be whitespace.");
                    
132  for (int unicode = 0x000A; unicode <= 0x000D; ++unicode) {
                    
133    NSString* str = [NSString stringWithFormat:@"%C", unicode];
                    
134    STAssertTrue(![str isEmptyOrWhitespace],
                    
137
                    
138  NSString* str = [NSString stringWithFormat:@"%C", 0x0085];
                    
139  STAssertTrue(![str isEmptyOrWhitespace], @"Unicode string should not be whitespace.");
                    
148///////////////////////////////////////////////////////////////////////////////////////////////////
                    
149- (void)testNSString_stringByRemovingHTMLTags {
                    
150  STAssertTrue([[@"" stringByRemovingHTMLTags] isEqualToString:@""], @"Empty case failed");
                    
                
Reachability.m https://github.com/HueMachine/iOS-boilerplate.git | Objective C | 814 lines
                    
108
                    
109NSString *const kInternetConnection  = @"InternetConnection";
                    
110NSString *const kLocalWiFiConnection = @"LocalWiFiConnection";
                    
110NSString *const kLocalWiFiConnection = @"LocalWiFiConnection";
                    
111NSString *const kReachabilityChangedNotification = @"NetworkReachabilityChangedNotification";
                    
112
                    
117
                    
118static NSString *reachabilityFlags_(SCNetworkReachabilityFlags flags) {
                    
119	
                    
120#if (__IPHONE_OS_VERSION_MIN_REQUIRED >= 30000) // Apple advises you to use the magic number instead of a symbol.
                    
121    return [NSString stringWithFormat:@"Reachability Flags: %c%c %c%c%c%c%c%c%c",
                    
122			(flags & kSCNetworkReachabilityFlagsIsWWAN)               ? 'W' : '-',
                    
133	// Compile out the v3.0 features for v2.2.1 deployment.
                    
134    return [NSString stringWithFormat:@"Reachability Flags: %c%c %c%c%c%c%c%c",
                    
135			(flags & kSCNetworkReachabilityFlagsIsWWAN)               ? 'W' : '-',
                    
                
ASIHTTPRequest.m https://github.com/HueMachine/iOS-boilerplate.git | Objective C | 1416 lines
                    
26// Automatically set on build
                    
27NSString *ASIHTTPRequestVersion = @"v1.8.1-33 2011-08-20";
                    
28
                    
28
                    
29static NSString *defaultUserAgent = nil;
                    
30
                    
30
                    
31NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
                    
32
                    
32
                    
33static NSString *ASIHTTPRequestRunLoopMode = @"ASIHTTPRequestRunLoopMode";
                    
34
                    
177- (void)finishedDownloadingPACFile:(ASIHTTPRequest *)theRequest;
                    
178- (void)runPACScript:(NSString *)script;
                    
179- (void)timeOutPACRead;
                    
                
ASIHTTPRequest.h https://github.com/HueMachine/iOS-boilerplate.git | C Header | 1004 lines
                    
28
                    
29extern NSString *ASIHTTPRequestVersion;
                    
30
                    
68// The error domain that all errors generated by ASIHTTPRequest use
                    
69extern NSString* const NetworkRequestErrorDomain;
                    
70
                    
103	// HTTP method to use (eg: GET / POST / PUT / DELETE / HEAD etc). Defaults to GET
                    
104	NSString *requestMethod;
                    
105	
                    
117	// You can set this yourself - useful if you want to PUT a file from local disk 
                    
118	NSString *postBodyFilePath;
                    
119	
                    
120	// Path to a temporary file used to store a deflated post body (when shouldCompressPostBody is YES)
                    
121	NSString *compressedPostBodyFilePath;
                    
122	
                    
                
ASIDownloadCache.m https://github.com/HueMachine/iOS-boilerplate.git | Objective C | 514 lines
                    
14
                    
15static NSString *sessionCacheFolder = @"SessionStore";
                    
16static NSString *permanentCacheFolder = @"PermanentStore";
                    
20+ (NSString *)keyForURL:(NSURL *)url;
                    
21- (NSString *)pathToFile:(NSString *)file;
                    
22@end
                    
204	// Grab the file extension, if there is one. We do this so we can save the cached response with the same file extension - this is important if you want to display locally cached data in a web view 
                    
205	NSString *extension = [[url path] pathExtension];
                    
206
                    
225
                    
226- (NSString *)pathToFile:(NSString *)file
                    
227{
                    
428{
                    
429	NSString *cacheControl = [[[request responseHeaders] objectForKey:@"Cache-Control"] lowercaseString];
                    
430	if (cacheControl) {
                    
                
SearchResults.ascx.cs https://bitbucket.org/kudutest2/kenticogit.git | C# | 698 lines
                    
122        {
                    
123            return CMS.SiteProvider.SearchHelper.GetSearchOptionsEnum(ValidationHelper.GetString(GetValue("SearchOptions"), CMS.SiteProvider.SearchHelper.GetSearchOptionsString(srchResults.SearchOptions)));
                    
124        }
                    
126        {
                    
127            SetValue("SearchOptions", CMS.SiteProvider.SearchHelper.GetSearchOptionsString(value));
                    
128            srchResults.SearchOptions = value;
                    
                
SearchDialogWithResults.ascx.cs https://bitbucket.org/kudutest2/kenticogit.git | C# | 791 lines
                    
222        {
                    
223            return CMS.SiteProvider.SearchHelper.GetSearchOptionsEnum(ValidationHelper.GetString(this.GetValue("SearchOptions"), CMS.SiteProvider.SearchHelper.GetSearchOptionsString(srchResults.SearchOptions)));
                    
224        }
                    
226        {
                    
227            this.SetValue("SearchOptions", CMS.SiteProvider.SearchHelper.GetSearchOptionsString(value));
                    
228            srchResults.SearchOptions = value;
                    
                
window.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 806 lines
                    
62@interface wxUIView(PossibleMethods)
                    
63- (void)setTitle:(NSString *)title forState:(UIControlState)state;
                    
64
                    
496        wxCFStringRef cf( title , encoding );
                    
497        [m_osxView setTitle:cf.AsNSString() forState:UIControlStateNormal ];
                    
498    }
                    
501        wxCFStringRef cf( title , encoding );
                    
502        [m_osxView setStringValue:cf.AsNSString()];
                    
503    }
                    
                
textctrl.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 749 lines
                    
208
                    
209- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;   // return NO to not change text
                    
210
                    
266- (void)textViewDidEndEditing:(UITextView *)textView;
                    
267- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
                    
268
                    
293
                    
294- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
                    
295{
                    
356    if (m_textView)
                    
357        [m_textView setText: wxCFStringRef( st , m_wxPeer->GetFont().GetEncoding() ).AsNSString()];
                    
358}
                    
429    NSMutableString* subst = [NSMutableString stringWithString:[m_textView text]];
                    
430    [subst replaceCharactersInRange:[m_textView selectedRange] withString:insert.AsNSString()];
                    
431
                    
                
window.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 1609 lines
                    
107@interface NSView(PossibleMethods)
                    
108- (void)setTitle:(NSString *)aString;
                    
109- (void)setStringValue:(NSString *)aString;
                    
145    {
                    
146        NSString* s = [event charactersIgnoringModifiers];
                    
147        // backspace char reports as delete w/modifiers for some reason
                    
294
                    
295void wxWidgetCocoaImpl::SetupKeyEvent(wxKeyEvent &wxevent , NSEvent * nsEvent, NSString* charString)
                    
296{
                    
312    {
                    
313        NSString* nschars = [nsEvent charactersIgnoringModifiers];
                    
314        if ( charString )
                    
                
toolbar.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 1576 lines
                    
186
                    
187            [m_toolbarItem setLabel:l.AsNSString()];
                    
188
                    
188
                    
189            [m_toolbarItem setToolTip:sh.AsNSString()];
                    
190        }
                    
192        if ( IsButton() )
                    
193            [(NSButton*)m_controlHandle setTitle:l.AsNSString()];
                    
194
                    
293
                    
294- (id) initWithItemIdentifier: (NSString*) identifier;
                    
295- (void)setImplementation: (wxToolBarTool *) theImplementation;
                    
306
                    
307- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag;
                    
308
                    
                
filedlg.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 664 lines
                    
48// type choice will not be shown, but all possible file items will be shown, if a popup must be working
                    
49// then the delegate method - (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename will have to
                    
50// be implemented
                    
59
                    
60- (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename;
                    
61
                    
214        wxCFStringRef cfext(extension);
                    
215        [types addObject: (NSString*)cfext.AsNSString()  ];
                    
216#if 0
                    
317        NSWindow* nativeParent = parentWindow->GetWXWindow();
                    
318        [sPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString()
                    
319            modalForWindow: nativeParent modalDelegate: m_sheetDelegate
                    
336        NSWindow* nativeParent = parentWindow->GetWXWindow();
                    
337        [oPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString()
                    
338            types: types modalForWindow: nativeParent
                    
                
dataview.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 1548 lines
                    
210{
                    
211    wxCHECK_MSG( [object isKindOfClass:[NSString class]], "",
                    
212                 wxString::Format
                    
217
                    
218    return wxCFStringRef([((NSString*) object) retain]).AsString();
                    
219}
                    
355    [[nativeColumn headerCell] setStringValue:
                    
356        [[wxCFStringRef(column->GetTitle()).AsNSString() retain] autorelease]];
                    
357    renderData->ApplyLineBreakMode([nativeColumn headerCell]);
                    
501    NSArray* supportedTypes(
                    
502        [NSArray arrayWithObjects:DataViewPboardType,NSStringPboardType,nil]
                    
503    );
                    
506
                    
507    NSString* bestType([pasteboard availableTypeFromArray:supportedTypes]);
                    
508
                    
                
utilscocoa.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 655 lines
                    
146        info->Init(size,fontFamily,fontstyle,fontweight,underlined,
                    
147            wxStringWithNSString([theFont familyName]), wxFONTENCODING_DEFAULT);
                    
148
                    
209    
                    
210    nsFont = [[NSFontManager sharedFontManager] fontWithFamily:wxCFStringRef(info->m_faceName).AsNSString() 
                    
211        traits:traits weight:weight size:info->m_pointSize];
                    
215        NSFontTraitMask remainingTraits = traits;
                    
216        nsFont = [[NSFontManager sharedFontManager] fontWithFamily:wxCFStringRef(info->m_faceName).AsNSString() 
                    
217                                                            traits:0 weight:5 size:info->m_pointSize];
                    
336    UIFont* uiFont;
                    
337    uiFont = [UIFont fontWithName:wxCFStringRef(info->m_faceName).AsNSString() size:info->m_pointSize];
                    
338    wxMacCocoaRetain(uiFont);
                    
360    wxCFStringRef cfname(name);
                    
361    return wxBitmap( [[UIImage imageNamed:cfname.AsNSString()] CGImage] );
                    
362#else
                    
                
fontdlgosx.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 559 lines
                    
74    NSButton* cancelButton = [[NSButton alloc] initWithFrame:rectCancel];
                    
75    [cancelButton setTitle:(NSString*)wxCFRetain((CFStringRef)cfCancelString)];
                    
76    [cancelButton setBezelStyle:NSRoundedBezelStyle];
                    
82    NSButton* okButton = [[NSButton alloc] initWithFrame:rectOK];
                    
83    [okButton setTitle:(NSString*)wxCFRetain((CFStringRef)cfOkString)];
                    
84    [okButton setBezelStyle:NSRoundedBezelStyle];
                    
387            [[NSFontManager sharedFontManager] fontWithFamily:
                    
388                                                    wxNSStringWithWxString(thewxfont.GetFaceName())
                    
389                                            traits:theMask
                    
512
                    
513    m_fontData.m_chosenFont.SetFaceName(wxStringWithNSString([theFont familyName]));
                    
514    m_fontData.m_chosenFont.SetPointSize(theFontSize);
                    
                
bitmap.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 725 lines
                    
336    NSBitmapImageRep *imageRep = [NSBitmapImageRep
                    
337        imageRepWithContentsOfFile:wxNSStringWithWxString(filename)];
                    
338
                    
                
app.mm https://bitbucket.org/lennonchan/cafu.git | Objective C++ | 512 lines
                    
33#import <AppKit/NSEvent.h>
                    
34#import <Foundation/NSString.h>
                    
35#import <Foundation/NSNotification.h>
                    
                
AFURLConnectionOperation.m https://bitbucket.org/af_1do/geolocation.git | Objective C | 855 lines
                    
48
                    
49static NSString * const kAFNetworkingLockName = @"com.alamofire.networking.operation.lock";
                    
50
                    
50
                    
51NSString * const AFNetworkingErrorDomain = @"AFNetworkingErrorDomain";
                    
52NSString * const AFNetworkingOperationFailingURLRequestErrorKey = @"AFNetworkingOperationFailingURLRequestErrorKey";
                    
52NSString * const AFNetworkingOperationFailingURLRequestErrorKey = @"AFNetworkingOperationFailingURLRequestErrorKey";
                    
53NSString * const AFNetworkingOperationFailingURLResponseErrorKey = @"AFNetworkingOperationFailingURLResponseErrorKey";
                    
54
                    
54
                    
55NSString * const AFNetworkingOperationDidStartNotification = @"com.alamofire.networking.operation.start";
                    
56NSString * const AFNetworkingOperationDidFinishNotification = @"com.alamofire.networking.operation.finish";
                    
283- (NSString *)description {
                    
284    return [NSString stringWithFormat:@"<%@: %p, state: %@, cancelled: %@ request: %@, response: %@>", NSStringFromClass([self class]), self, AFKeyPathFromOperationState(self.state), ([self isCancelled] ? @"YES" : @"NO"), self.request, self.response];
                    
285}
                    
                
AFHTTPClient.m https://bitbucket.org/af_1do/geolocation.git | Objective C | 1270 lines
                    
82
                    
83static NSString * AFPercentEscapedQueryStringPairMemberFromStringWithEncoding(NSString *string, NSStringEncoding encoding) {
                    
84    static NSString * const kAFCharactersToBeEscaped = @":/?&=;+!@#$()~',*";
                    
116
                    
117- (NSString *)URLEncodedStringValueWithEncoding:(NSStringEncoding)stringEncoding {
                    
118    if (!self.value || [self.value isEqual:[NSNull null]]) {
                    
252    // User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43
                    
253    [self setDefaultHeader:@"User-Agent" value:[NSString stringWithFormat:@"%@/%@ (%@; iOS %@; Scale/%0.2f)", [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleExecutableKey] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleIdentifierKey], (__bridge id)CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle(), kCFBundleVersionKey) ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey], [[UIDevice currentDevice] model], [[UIDevice currentDevice] systemVersion], ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] ? [[UIScreen mainScreen] scale] : 1.0f)]];
                    
254#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
                    
254#elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
                    
255    [self setDefaultHeader:@"User-Agent" value:[NSString stringWithFormat:@"%@/%@ (Mac OS X %@)", [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleExecutableKey] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleIdentifierKey], [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey], [[NSProcessInfo processInfo] operatingSystemVersionString]]];
                    
256#endif
                    
280- (NSString *)description {
                    
281    return [NSString stringWithFormat:@"<%@: %p, baseURL: %@, defaultHeaders: %@, registeredOperationClasses: %@, operationQueue: %@>", NSStringFromClass([self class]), self, [self.baseURL absoluteString], self.defaultHeaders, self.registeredHTTPOperationClassNames, self.operationQueue];
                    
282}
                    
                
OgreConfigDialog.mm https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | Objective C++ | 471 lines
                    
86            // Add to the drop down
                    
87            NSString *renderSystemName = [[NSString alloc] initWithCString:rs->getName().c_str() encoding:NSASCIIStringEncoding];
                    
88            [[mWindowDelegate getRenderSystemsPopUp] addItemWithTitle:renderSystemName];
                    
98                    {
                    
99                        NSString *optionString = [[NSString alloc] initWithCString:pOpt->second.possibleValues[i].c_str()
                    
100                                                                    encoding:NSASCIIStringEncoding];
                    
111                    {
                    
112                        NSString *optionString = [[NSString alloc] initWithCString:pOpt->second.possibleValues[i].c_str()
                    
113                                                                    encoding:NSASCIIStringEncoding];
                    
                
wglew.h https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git | C Header | 1026 lines
                    
148
                    
149typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
                    
150
                    
150
                    
151#define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
                    
152
                    
                
main.m https://bitbucket.org/sumidasignage/mupdf.git | Objective C | 1661 lines
                    
102}
                    
103- (id) initWithFilename: (NSString*)nsfilename document: (fz_document *)aDoc;
                    
104- (void) createPageView: (int)number;
                    
155
                    
156static void showAlert(NSString *msg, NSString *filename)
                    
157{
                    
181			{
                    
182				NSString *title = [NSString stringWithUTF8String: outline->title];
                    
183				[titles addObject: [NSString stringWithFormat: @"%s%@", indent, title]];
                    
328	NSFileManager *fileman = [NSFileManager defaultManager];
                    
329	NSString *docdir = [NSString stringWithFormat: @"%@/Documents", NSHomeDirectory()];
                    
330	NSMutableArray *outfiles = [[NSMutableArray alloc] init];
                    
391	int row = [sender tag];
                    
392	NSString *title = [NSString stringWithFormat: @"Delete %@?", [files objectAtIndex: row - 1]];
                    
393	UIActionSheet *sheet = [[UIActionSheet alloc]
                    
                
main.js https://github.com/l15k4/liferay-plugins.git | JavaScript | 922 lines
                    
5
                    
6		var containsString = Lang.String.contains;
                    
7
                    
                
UVWelcomeViewController.m https://github.com/appsocial/uservoice-iphone-sdk.git | Objective C | 478 lines
                    
39
                    
40- (NSString *)backButtonTitle {
                    
41	return @"Welcome";
                    
71	if (buttonIndex == alertView.firstOtherButtonIndex) {
                    
72		NSString *url = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",
                    
73						 [UVSession currentSession].clientConfig.itunesApplicationId];
                    
130
                    
131- (CGFloat)heightForViewWithHeader:(NSString *)header subheader:(NSString *)subheader 
                    
132{
                    
161    [myButton addTarget:self action:@selector(pushNewTicketView) forControlEvents:UIControlEventTouchUpInside];
                    
162	[myButton setTitle:[NSString stringWithFormat:@"Contact %@", [UVSession currentSession].clientConfig.subdomain.name]
                    
163			  forState:UIControlStateNormal];
                    
262
                    
263- (UIView *)viewWithHeader:(NSString *)header subheader:(NSString *)subheader {
                    
264	CGFloat height = [self heightForViewWithHeader:header subheader:subheader];
                    
                
UVTextEditor.m https://github.com/appsocial/uservoice-iphone-sdk.git | Objective C | 582 lines
                    
150- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range
                    
151 replacementText:(NSString *)text {
                    
152	if ([text isEqualToString:@"\n"]) {
                    
217- (BOOL)textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range
                    
218replacementString:(NSString*)string {
                    
219	BOOL shouldChange = YES;
                    
299	
                    
300	NSString* text = _textField.hidden ? _textView.text : _textField.text;
                    
301	if (!text.length) {
                    
                
UVSuggestionListViewController.m https://github.com/appsocial/uservoice-iphone-sdk.git | Objective C | 523 lines
                    
61
                    
62- (NSString *)backButtonTitle {
                    
63	return @"Ideas";
                    
176	UIFont *font = [UIFont boldSystemFontOfSize:18];
                    
177	NSString *text = [NSString stringWithFormat:@"Add \"%@\"", _textEditor.text];
                    
178	CGSize size = [text sizeWithFont:font forWidth:260 lineBreakMode:UILineBreakModeTailTruncation];
                    
201- (UITableViewCell *)tableView:(UITableView *)theTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
                    
202	NSString *identifier;
                    
203	BOOL selectable = YES;
                    
                
UVSuggestionDetailsViewController.m https://github.com/appsocial/uservoice-iphone-sdk.git | Objective C | 570 lines
                    
45	
                    
46- (NSString *)backButtonTitle {
                    
47	return @"Idea";
                    
149
                    
150- (NSString *)postDateString {
                    
151	static NSDateFormatter* dateFormatter = nil;
                    
189		label.font = [UIFont systemFontOfSize:14];
                    
190		label.text = [NSString stringWithFormat:
                    
191					  @"Voting for this suggestion is now closed and your %d %@ been returned to you",
                    
264- (void)customizeCellForStatus:(UITableViewCell *)cell indexPath:(NSIndexPath *)indexPath {
                    
265	NSString *status = suggestion.status ? suggestion.status : @"N/A";
                    
266	cell.textLabel.text = [NSString stringWithFormat:@"Status: %@", [status capitalizedString]];
                    
277- (void)customizeCellForComments:(UITableViewCell *)cell indexPath:(NSIndexPath *)indexPath {
                    
278	cell.textLabel.text = [NSString stringWithFormat:(self.suggestion.commentsCount == 1 ? @"%d Comment" : @"%d Comments"), self.suggestion.commentsCount];
                    
279	cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
                    
                
UVNewSuggestionViewController.m https://github.com/appsocial/uservoice-iphone-sdk.git | Objective C | 618 lines
                    
48
                    
49- (id)initWithForum:(UVForum *)theForum title:(NSString *)theTitle {
                    
50	if (self = [super init]) {
                    
141	
                    
142	NSString *msg = [NSString stringWithFormat:@"Your idea \"%@\" was successfully created.", self.title];
                    
143	UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Success" 
                    
299
                    
300- (UITextField *)customizeTextFieldCell:(UITableViewCell *)cell label:(NSString *)label placeholder:(NSString *)placeholder {
                    
301	cell.textLabel.text = label;
                    
                
UVCommentListViewController.m https://github.com/appsocial/uservoice-iphone-sdk.git | Objective C | 446 lines
                    
45
                    
46- (NSString *)backButtonTitle {
                    
47	return @"Comments";
                    
66	} else {
                    
67		self.navigationItem.title = [NSString stringWithFormat:@"%d Comments", self.suggestion.commentsCount];
                    
68	}
                    
253	NSInteger days = ABS([comment.createdAt timeIntervalSinceNow]) / (60 * 60 * 24);
                    
254	NSString *daysAgo = [NSString stringWithFormat:@"%d days ago", days];
                    
255	UVUserButton *userButton = (UVUserButton *)[cell.contentView viewWithTag:UV_COMMENT_LIST_TAG_CELL_NAME];
                    
301- (UITableViewCell *)tableView:(UITableView *)theTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
                    
302	NSString *identifier;
                    
303	UITableViewCellStyle style = UITableViewCellStyleDefault;
                    
365	} else {
                    
366		self.navigationItem.title = [NSString stringWithFormat:@"%d Comments", self.suggestion.commentsCount];
                    
367	}
                    
                
CCTextureCache.m https://bitbucket.org/stavrossk/ipong.git | Objective C | 462 lines
                    
43
                    
44//static NSString* loadHiResImage( NSString* path )
                    
45//{
                    
45//{
                    
46//	NSString *newPath = nil;
                    
47//
                    
49//	{
                    
50//		NSString *path2x = [path stringByReplacingCharactersInRange:NSMakeRange([path length] - 4, 0) withString:@"@2x"];
                    
51//		newPath = [[UIImage alloc] initWithContentsOfFile:path2x];
                    
127
                    
128- (NSString*) description
                    
129{
                    
129{
                    
130	return [NSString stringWithFormat:@"<%@ = %08X | num of textures =  %i>", [self class], self, [textures_ count]];
                    
131}
                    
                
CCTextureCache.m https://github.com/jdxyw/Tutorial.git | Objective C | 498 lines
                    
110
                    
111- (NSString*) description
                    
112{
                    
112{
                    
113	return [NSString stringWithFormat:@"<%@ = %08X | num of textures =  %i | keys: %@>",
                    
114			[self class],
                    
212
                    
213-(void) addImageAsync: (NSString*)path target:(id)target selector:(SEL)selector
                    
214{
                    
238
                    
239-(CCTexture2D*) addImage: (NSString*) path
                    
240{
                    
255		
                    
256		NSString *lowerCase = [path lowercaseString];
                    
257		// all images are handled by UIImage except PVR extension that is handled by our own handler
                    
                
CCDirector.m https://bitbucket.org/stavrossk/ipong.git | Objective C | 594 lines
                    
65
                    
66extern NSString * cocos2dVersion(void);
                    
67
                    
540
                    
541		NSString *str = [[NSString alloc] initWithFormat:@"%.1f", frameRate_];
                    
542		[FPSLabel_ setString:str];
                    
561	
                    
562	NSString *str = [NSString stringWithFormat:@"%.2f",frameRate_];
                    
563	CCTexture2D *texture = [[CCTexture2D alloc] initWithString:str dimensions:CGSizeMake(100,30) alignment:UITextAlignmentLeft fontName:@"Arial" fontSize:24];
                    
                
NXOAuth2Request.html https://bitbucket.org/Makz010/budzma.git | HTML | 470 lines
                    
269
                    
270	<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readwrite) NSString *requestMethod</code></div>
                    
271
                    
299
                    
300	<div class="method-subsection method-declaration"><code>+ (void)performMethod:(NSString *)<em>method</em> onResource:(NSURL *)<em>resource</em> usingParameters:(NSDictionary *)<em>parameters</em> withAccount:(NXOAuth2Account *)<em>account</em> sendProgressHandler:(NXOAuth2ConnectionSendingProgressHandler)<em>progressHandler</em> responseHandler:(NXOAuth2ConnectionResponseHandler)<em>responseHandler</em></code></div>
                    
301
                    
329
                    
330	<div class="method-subsection method-declaration"><code>- (id)initWithResource:(NSURL *)<em>url</em> method:(NSString *)<em>method</em> parameters:(NSDictionary *)<em>parameter</em></code></div>
                    
331
                    
                
Crashlytics.h https://gitlab.com/yangle1111/knoware | C Header | 263 lines
                    
65+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(nullable id<CrashlyticsDelegate>)delegate;
                    
66+ (Crashlytics *)startWithAPIKey:(NSString *)apiKey delegate:(nullable id<CrashlyticsDelegate>)delegate afterDelay:(NSTimeInterval)delay CLS_DEPRECATED("Crashlytics no longer needs or uses the delay parameter.  Please use +startWithAPIKey:delegate: instead.");
                    
67
                    
139 */
                    
140- (void)setObjectValue:(nullable id)value forKey:(NSString *)key;
                    
141
                    
147 */
                    
148- (void)setIntValue:(int)value forKey:(NSString *)key;
                    
149
                    
155 */
                    
156- (void)setBoolValue:(BOOL)value forKey:(NSString *)key;
                    
157
                    
181 */
                    
182- (void)recordCustomExceptionName:(NSString *)name reason:(nullable NSString *)reason frameArray:(CLS_GENERIC_NSARRAY(CLSStackFrame *) *)frameArray;
                    
183
                    
                
CastViewController.m https://gitlab.com/adam.lukaitis/io2015-codelabs | Objective C | 648 lines
                    
26
                    
27static NSString * const kListTracks = @"listTracks";
                    
28static NSString * const kListTracksPopover = @"listTracksPopover";
                    
28static NSString * const kListTracksPopover = @"listTracksPopover";
                    
29NSString * const kCastComponentPosterURL = @"castComponentPosterURL";
                    
30
                    
95
                    
96  self.castingToLabel.text = [NSString stringWithFormat:NSLocalizedString(@"Casting to %@", nil),
                    
97      _castDeviceController.deviceManager.device.friendlyName];
                    
99
                    
100  self.volumeControlLabel.text = [NSString stringWithFormat:NSLocalizedString(@"%@ Volume", nil),
                    
101                                    _castDeviceController.deviceManager.device.friendlyName];
                    
322// Little formatting option here
                    
323- (NSString*)getFormattedTime:(NSTimeInterval)timeInSeconds {
                    
324  int seconds = round(timeInSeconds);
                    
                
visualinfo.c https://gitlab.com/dannywillems/mass_collide | C | 1178 lines
                    
178    fprintf(file, "WGL extensions (WGL_): \n");
                    
179    PrintExtensions(wglGetExtensionsStringARB ? 
                    
180                    (char*)wglGetExtensionsStringARB(ctx.dc) :
                    
180                    (char*)wglGetExtensionsStringARB(ctx.dc) :
                    
181		    (char*)wglGetExtensionsStringEXT());
                    
182  }
                    
187  fprintf(file, "GLX extensions (GLX_): \n");
                    
188  PrintExtensions(glXQueryExtensionsString(glXGetCurrentDisplay(), 
                    
189                                           DefaultScreen(glXGetCurrentDisplay())));
                    
                
Media.cs https://gitlab.com/dannywillems/cordova-plugin-media | C# | 678 lines
                    
132        {
                    
133            string[] optionsString = JSON.JsonHelper.Deserialize<string[]>(options);
                    
134            messageChannelCallbackId = optionsString[0];
                    
159                {
                    
160                    string[] optionsString = JSON.JsonHelper.Deserialize<string[]>(options);
                    
161                    mediaOptions.Id = optionsString[0];
                    
161                    mediaOptions.Id = optionsString[0];
                    
162                    callbackId = mediaOptions.CallbackId = optionsString[1];
                    
163                }
                    
227                {
                    
228                    string[] optionsString = JSON.JsonHelper.Deserialize<string[]>(options);
                    
229                    mediaOptions.Id = optionsString[0];
                    
229                    mediaOptions.Id = optionsString[0];
                    
230                    mediaOptions.Src = optionsString[1];
                    
231                    callbackId = mediaOptions.CallbackId = optionsString[2];
                    
                
CDVSound.m https://gitlab.com/dannywillems/cordova-plugin-media | Objective C | 891 lines
                    
102            // see if this exists in the documents/temp directory from a previous recording
                    
103            NSString* testPath = [NSString stringWithFormat:@"%@/%@", [NSTemporaryDirectory()stringByStandardizingPath], resourcePath];
                    
104            if ([[NSFileManager defaultManager] fileExistsAtPath:testPath]) {
                    
132// Creates or gets the cached audio file resource object
                    
133- (CDVAudioFile*)audioFileForResource:(NSString*)resourcePath withId:(NSString*)mediaId doValidation:(BOOL)bValidate forRecording:(BOOL)bRecord
                    
134{
                    
175    if (bError) {
                    
176        jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%@);", @"cordova.require('cordova-plugin-media.Media').onStatus", mediaId, MEDIA_ERROR, [self createMediaErrorWithCode:errcode message:errMsg]];
                    
177        [self.commandDelegate evalJs:jsString];
                    
202// helper function to create a error object string
                    
203- (NSString*)createMediaErrorWithCode:(CDVMediaError)code message:(NSString*)message
                    
204{
                    
222        NSString* errorMessage = [NSString stringWithFormat:@"Failed to initialize Media file with path %@", resourcePath];
                    
223        NSString* jsString = [NSString stringWithFormat:@"%@(\"%@\",%d,%@);", @"cordova.require('cordova-plugin-media.Media').onStatus", mediaId, MEDIA_ERROR, [self createMediaErrorWithCode:MEDIA_ERR_ABORTED message:errorMessage]];
                    
224        [self.commandDelegate evalJs:jsString];
                    
                
MBProgressHUD.m https://gitlab.com/dannywillems/cordova-activityindicator | Objective C | 1017 lines
                    
34	#define MB_MULTILINE_TEXTSIZE(text, font, maxSize, mode) [text length] > 0 ? [text \
                    
35		boundingRectWithSize:maxSize options:(NSStringDrawingUsesLineFragmentOrigin) \
                    
36		attributes:@{NSFontAttributeName:font} context:nil].size : CGSizeZero;
                    
55- (void)unregisterFromNotifications;
                    
56- (void)updateUIForKeypath:(NSString *)keyPath;
                    
57- (void)hideUsingAnimation:(BOOL)animated;
                    
359
                    
360- (void)animationFinished:(NSString *)animationID finished:(BOOL)finished context:(void*)context {
                    
361	[self done];
                    
                
Manager.swift https://gitlab.com/pkgroup1/Pokedex | Swift | 695 lines
                    
64                var mutableUserAgent = NSMutableString(string: "\(executable)/\(bundle) (\(version); OS \(os))") as CFMutableString
                    
65                let transform = NSString(string: "Any-Latin; Latin-ASCII; [:^ASCII:] Remove") as CFString
                    
66
                    
                
DDXMLNode.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1976 lines
                    
99
                    
100+ (id)elementWithName:(NSString *)name URI:(NSString *)URI
                    
101{
                    
104
                    
105+ (id)attributeWithName:(NSString *)name stringValue:(NSString *)stringValue
                    
106{
                    
113
                    
114+ (id)attributeWithName:(NSString *)name URI:(NSString *)URI stringValue:(NSString *)stringValue
                    
115{
                    
137
                    
138+ (id)processingInstructionWithName:(NSString *)name stringValue:(NSString *)stringValue
                    
139{
                    
485		
                    
486		NSString *result = [NSString stringWithUTF8String:(const char *)content];
                    
487		
                    
                
DDXMLElement.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 801 lines
                    
71
                    
72- (id)initWithName:(NSString *)name URI:(NSString *)URI
                    
73{
                    
87
                    
88- (id)initWithName:(NSString *)name stringValue:(NSString *)string
                    
89{
                    
221		{
                    
222			NSString *uri = [NSString stringWithUTF8String:((const char *)ns->href)];
                    
223			return [self _elementsForName:name localName:localName prefix:prefix uri:uri];
                    
229
                    
230- (NSArray *)elementsForLocalName:(NSString *)localName URI:(NSString *)uri
                    
231{
                    
243	{
                    
244		NSString *name = [NSString stringWithFormat:@"%@:%@", prefix, localName];
                    
245		
                    
                
DDTTYLogger.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1480 lines
                    
102	NSUInteger fgCodeIndex;
                    
103	NSString *fgCodeRaw;
                    
104	
                    
105	NSUInteger bgCodeIndex;
                    
106	NSString *bgCodeRaw;
                    
107	
                    
                
DDFileLogger.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1380 lines
                    
221	NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
                    
222	NSString *basePath = ([paths count] > 0) ? [paths objectAtIndex:0] : NSTemporaryDirectory();
                    
223	NSString *logsDirectory = [[basePath stringByAppendingPathComponent:@"Logs"] stringByAppendingPathComponent:appName];
                    
280{
                    
281	NSString *logsDirectory = [self logsDirectory];
                    
282	NSArray *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:logsDirectory error:nil];
                    
400	CFStringRef fullStr = CFUUIDCreateString(NULL, uuid);
                    
401	NSString *result = (__bridge_transfer NSString *)CFStringCreateWithSubstring(NULL, fullStr, CFRangeMake(0, 6));
                    
402	
                    
418	{
                    
419		NSString *fileName = [NSString stringWithFormat:@"log-%@.txt", [self generateShortUUID]];
                    
420		
                    
472	
                    
473	return [NSString stringWithFormat:@"%@  %@", dateAndTime, logMessage->logMsg];
                    
474}
                    
                
GCDAsyncSocket.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1831 lines
                    
127
                    
128NSString *const GCDAsyncSocketException = @"GCDAsyncSocketException";
                    
129NSString *const GCDAsyncSocketErrorDomain = @"GCDAsyncSocketErrorDomain";
                    
130
                    
131NSString *const GCDAsyncSocketQueueName = @"GCDAsyncSocket";
                    
132NSString *const GCDAsyncSocketThreadName = @"GCDAsyncSocket-CFStream";
                    
134#if SECURE_TRANSPORT_MAYBE_AVAILABLE
                    
135NSString *const GCDAsyncSocketSSLCipherSuites = @"GCDAsyncSocketSSLCipherSuites";
                    
136#if TARGET_OS_IPHONE
                    
136#if TARGET_OS_IPHONE
                    
137NSString *const GCDAsyncSocketSSLProtocolVersionMin = @"GCDAsyncSocketSSLProtocolVersionMin";
                    
138NSString *const GCDAsyncSocketSSLProtocolVersionMax = @"GCDAsyncSocketSSLProtocolVersionMax";
                    
139#else
                    
140NSString *const GCDAsyncSocketSSLDiffieHellmanParameters = @"GCDAsyncSocketSSLDiffieHellmanParameters";
                    
141#endif
                    
                
GCDAsyncSocket.h https://gitlab.com/praveenvelanati/ios-demo | C Header | 1046 lines
                    
61
                    
62extern NSString *const GCDAsyncSocketException;
                    
63extern NSString *const GCDAsyncSocketErrorDomain;
                    
64
                    
65extern NSString *const GCDAsyncSocketQueueName;
                    
66extern NSString *const GCDAsyncSocketThreadName;
                    
68#if SECURE_TRANSPORT_MAYBE_AVAILABLE
                    
69extern NSString *const GCDAsyncSocketSSLCipherSuites;
                    
70#if TARGET_OS_IPHONE
                    
70#if TARGET_OS_IPHONE
                    
71extern NSString *const GCDAsyncSocketSSLProtocolVersionMin;
                    
72extern NSString *const GCDAsyncSocketSSLProtocolVersionMax;
                    
73#else
                    
74extern NSString *const GCDAsyncSocketSSLDiffieHellmanParameters;
                    
75#endif
                    
                
XMPPSRVResolver.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 706 lines
                    
43
                    
44NSString *const XMPPSRVResolverErrorDomain = @"XMPPSRVResolverErrorDomain";
                    
45
                    
123
                    
124- (NSString *)srvName
                    
125{
                    
125{
                    
126	__block NSString *result = nil;
                    
127	
                    
306		{
                    
307			XMPPLogWarn(@"%@: delegate doesn't implement %@", THIS_FILE, NSStringFromSelector(selector));
                    
308		}
                    
334			{
                    
335				XMPPLogWarn(@"%@: delegate doesn't implement %@", THIS_FILE, NSStringFromSelector(selector));
                    
336			}
                    
                
XMPPStream.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1956 lines
                    
71
                    
72NSString *const XMPPStreamErrorDomain = @"XMPPStreamErrorDomain";
                    
73NSString *const XMPPStreamDidChangeMyJIDNotification = @"XMPPStreamDidChangeMyJID";
                    
125	
                    
126	NSString *hostName;
                    
127	UInt16 hostPort;
                    
165- (void)continueStartTLS:(NSMutableDictionary *)settings;
                    
166- (void)continueHandleBinding:(NSString *)alternativeResource;
                    
167- (void)setupKeepAliveTimer;
                    
333
                    
334- (NSString *)hostName
                    
335{
                    
559		
                    
560		NSString *keepAliveString = [[NSString alloc] initWithData:keepAliveData encoding:NSUTF8StringEncoding];
                    
561		if ([keepAliveString length] > 0)
                    
                
XMPPStream.h https://gitlab.com/praveenvelanati/ios-demo | C Header | 901 lines
                    
27
                    
28extern NSString *const XMPPStreamErrorDomain;
                    
29
                    
95**/
                    
96@property (readwrite, copy) NSString *hostName;
                    
97
                    
                
XMPPParser.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 875 lines
                    
166		
                    
167		NSString *elementName = [[NSString alloc] initWithFormat:@"%@:%@", prefix, name];
                    
168		[element setName:elementName];
                    
172	{
                    
173		NSString *elementName = [[NSString alloc] initWithUTF8String:(const char *)node->name];
                    
174		[element setName:elementName];
                    
230			{
                    
231				NSString *value = [[NSString alloc] initWithUTF8String:(const char *)childNode->content];
                    
232				[element setStringValue:value];
                    
267				NSString *prefix = [[NSString alloc] initWithUTF8String:(const char *)attrNode->ns->prefix];
                    
268				NSString *name   = [[NSString alloc] initWithUTF8String:(const char *)attrNode->name];
                    
269				
                    
269				
                    
270				NSString *attrName = [[NSString alloc] initWithFormat:@"%@:%@", prefix, name];
                    
271				[attr setName:attrName];
                    
                
NSDate+ISO8601Parsing.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 655 lines
                    
169 */
                    
170+ (NSDate *)dateWithString:(NSString *)str strictly:(BOOL)strict timeSeparator:(unichar)timeSep getRange:(out NSRange *)outRange {
                    
171  NSCalendar *gregorian = [[NSCalendar alloc]
                    
                
LocalTime.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1018 lines
                    
24}
                    
25- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix
                    
26{
                    
98				} else {
                    
99					NSString *elementTypeString = [NSString stringWithCString:(char*)instanceType encoding:NSUTF8StringEncoding];
                    
100					
                    
221				} else {
                    
222					NSString *elementTypeString = [NSString stringWithCString:(char*)instanceType encoding:NSUTF8StringEncoding];
                    
223					
                    
232						
                    
233						NSString *standardPrefix = [[USGlobals sharedInstance].wsdlStandardNamespaces objectForKey:[NSString stringWithCString:(char*)elementNamespace->href encoding:NSUTF8StringEncoding]];
                    
234						
                    
331}
                    
332- (void)sendHTTPCallUsingBody:(NSString *)outputBody soapAction:(NSString *)soapAction forOperation:(LocalTimeSoapBindingOperation *)operation
                    
333{
                    
                
MBProgressHUD.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 659 lines
                    
14- (void)done;
                    
15- (void)updateLabelText:(NSString *)newText;
                    
16- (void)updateDetailsLabelText:(NSString *)newText;
                    
86
                    
87- (void)setLabelText:(NSString *)newText {
                    
88	if ([NSThread isMainThread]) {
                    
98
                    
99- (NSString *)labelText {
                    
100	return labelText;
                    
102
                    
103- (void)setDetailsLabelText:(NSString *)newText {
                    
104	if ([NSThread isMainThread]) {
                    
114
                    
115- (NSString *)detailsLabelText {
                    
116	return detailsLabelText;
                    
                
MBProgressHUD.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 756 lines
                    
33- (void)unregisterFromNotifications;
                    
34- (void)updateUIForKeypath:(NSString *)keyPath;
                    
35- (void)hideUsingAnimation:(BOOL)animated;
                    
318
                    
319- (void)animationFinished:(NSString *)animationID finished:(BOOL)finished context:(void*)context {
                    
320	[self done];
                    
                
AppDelegate.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 456 lines
                    
72	
                    
73	NSString *tempFile = [[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"The Great American Novel.txt.download"];
                    
74	if ([[NSFileManager defaultManager] fileExistsAtPath:tempFile]) {
                    
113{
                    
114	[fileLocation setStringValue:[NSString stringWithFormat:@"File downloaded to %@",[request downloadDestinationPath]]];
                    
115	[startButton setTitle:@"Start"];
                    
123	} else {
                    
124		[fileLocation setStringValue:[NSString stringWithFormat:@"An error occurred: %@",[[request error] localizedDescription]]];
                    
125		[startButton setTitle:@"Start"];
                    
169{
                    
170	[bandwidthUsed setStringValue:[NSString stringWithFormat:@"%luKB / second",[ASIHTTPRequest averageBandwidthUsedPerSecond]/1024]];
                    
171}
                    
282	NSMutableData *data = [NSMutableData dataWithLength:1024*1024];
                    
283	NSString *path = [[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"bigfile"];
                    
284	[data writeToFile:path atomically:NO];
                    
                
ASIS3RequestTests.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 860 lines
                    
16// Fill in these to run the tests that actually connect and manipulate objects on S3
                    
17static NSString *secretAccessKey = @"";
                    
18static NSString *accessKey = @"";
                    
20// You should run these tests on a bucket that does not yet exist
                    
21static NSString *bucket = @"";
                    
22
                    
51{
                    
52	NSString *exampleSecretAccessKey = @"uV3F3YluFJax1cknvbcGwgjvx4QpvB+leU8dUj2o";
                    
53	NSString *exampleAccessKey = @"0PN5J17HBGZHT7JJ3X82";
                    
53	NSString *exampleAccessKey = @"0PN5J17HBGZHT7JJ3X82";
                    
54	NSString *exampleBucket = @"johnsmith";
                    
55	
                    
56	// Test list all my buckets
                    
57	NSString *dateString = @"Wed, 28 Mar 2007 01:29:59 +0000";
                    
58	ASIS3ServiceRequest *serviceRequest = [ASIS3ServiceRequest serviceRequest];
                    
                
ASIHTTPRequestTests.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1152 lines
                    
61	[request startSynchronous];
                    
62	NSString *html = [request responseString];
                    
63	GHAssertNotNil(html,@"Basic synchronous request failed");
                    
65	// Check we're getting the correct response headers
                    
66	NSString *pingBackHeader = [[request responseHeaders] objectForKey:@"X-Pingback"];
                    
67	BOOL success = [pingBackHeader isEqualToString:@"http://allseeing-i.com/Ping-Back"];
                    
97	NSData *data = [@"Hello, world" dataUsingEncoding:NSUTF8StringEncoding];
                    
98	NSString *base64 = [ASIHTTPRequest base64forData:data];
                    
99	BOOL success = [base64 isEqualToString:@"SGVsbG8sIHdvcmxk"];
                    
248	
                    
249	NSString *etag = [[request responseHeaders] objectForKey:@"Etag"];
                    
250	NSString *lastModified = [[request responseHeaders] objectForKey:@"Last-Modified"];
                    
281	NSArray *IANAEncodings = [NSArray arrayWithObjects:@"UTF-8",@"US-ASCII",@"ISO-8859-1",@"UTF-16",nil];
                    
282	NSUInteger NSStringEncodings[] = {NSUTF8StringEncoding,NSASCIIStringEncoding,NSISOLatin1StringEncoding,NSUnicodeStringEncoding};
                    
283	
                    
                
ASIDownloadCacheTests.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 562 lines
                    
175
                    
176	NSString *path = [[ASIDownloadCache sharedCache] pathToStoreCachedResponseDataForRequest:request];
                    
177	success = (path != nil);
                    
228	for (NSString *cacheType in cacheHeaders) {
                    
229		NSString *url = [NSString stringWithFormat:@"http://allseeing-i.com/ASIHTTPRequest/tests/%@",cacheType];
                    
230		ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:url]];
                    
268	NSArray *headers = [NSArray arrayWithObjects:@"last-modified",@"etag",@"expires",@"max-age",nil];
                    
269	for (NSString *header in headers) {
                    
270		ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://allseeing-i.com/ASIHTTPRequest/tests/content-always-new/%@",header]]];
                    
277
                    
278		request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://allseeing-i.com/ASIHTTPRequest/tests/content-always-new/%@",header]]];
                    
279		[request setDownloadCache:[ASIDownloadCache sharedCache]];
                    
303	NSArray *extensions = [ASIDownloadCache fileExtensionsToHandleAsHTML];
                    
304	for (NSString *extension in extensions) {
                    
305		NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://allseeing-i.com/file.%@",extension]];
                    
                
ASIWebPageRequest.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 722 lines
                    
31+ (NSArray *)CSSURLsFromString:(NSString *)string;
                    
32- (NSString *)relativePathTo:(NSString *)destinationPath fromPath:(NSString *)sourcePath;
                    
33
                    
88	webContentType = ASINotParsedWebContentType;
                    
89	NSString *contentType = [[[self responseHeaders] objectForKey:@"Content-Type"] lowercaseString];
                    
90	contentType = [[contentType componentsSeparatedByString:@";"] objectAtIndex:0];
                    
105
                    
106	NSString *responseCSS = nil;
                    
107	NSError *err = nil;
                    
108	if ([self downloadDestinationPath]) {
                    
109		responseCSS = [NSString stringWithContentsOfFile:[self downloadDestinationPath] encoding:[self responseEncoding] error:&err];
                    
110	} else {
                    
123
                    
124	for (NSString *theURL in urls) {
                    
125		[self addURLToFetch:theURL];
                    
                
ASIHTTPRequest.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1398 lines
                    
26// Automatically set on build
                    
27NSString *ASIHTTPRequestVersion = @"v1.8.1-61 2011-09-19";
                    
28
                    
28
                    
29static NSString *defaultUserAgent = nil;
                    
30
                    
30
                    
31NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
                    
32
                    
32
                    
33static NSString *ASIHTTPRequestRunLoopMode = @"ASIHTTPRequestRunLoopMode";
                    
34
                    
177- (void)finishedDownloadingPACFile:(ASIHTTPRequest *)theRequest;
                    
178- (void)runPACScript:(NSString *)script;
                    
179- (void)timeOutPACRead;
                    
                
ForAndroid.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1603 lines
                    
28}
                    
29- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix
                    
30{
                    
143				} else {
                    
144					NSString *elementTypeString = [NSString stringWithCString:(char*)instanceType encoding:NSUTF8StringEncoding];
                    
145					
                    
346}
                    
347- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix
                    
348{
                    
419}
                    
420- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix
                    
421{
                    
493				} else {
                    
494					NSString *elementTypeString = [NSString stringWithCString:(char*)instanceType encoding:NSUTF8StringEncoding];
                    
495					
                    
                
ForAndroid.h https://gitlab.com/praveenvelanati/ios-demo | C Header | 1232 lines
                    
63- (NSString *)nsPrefix;
                    
64- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix;
                    
65- (void)addAttributesToNode:(xmlNodePtr)node;
                    
138- (NSString *)nsPrefix;
                    
139- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix;
                    
140- (void)addAttributesToNode:(xmlNodePtr)node;
                    
382- (NSString *)nsPrefix;
                    
383- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix;
                    
384- (void)addAttributesToNode:(xmlNodePtr)node;
                    
401- (NSString *)nsPrefix;
                    
402- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix;
                    
403- (void)addAttributesToNode:(xmlNodePtr)node;
                    
419- (NSString *)nsPrefix;
                    
420- (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix;
                    
421- (void)addAttributesToNode:(xmlNodePtr)node;
                    
                
SBJsonParser.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 516 lines
                    
69
                    
70- (id)objectWithString:(NSString *)repr {
                    
71    [self clearErrorTrace];
                    
102
                    
103- (id)objectWithString:(NSString*)repr error:(NSError**)error {
                    
104    id tmp = [self objectWithString:repr];
                    
263        if (![self scanValue:&v]) {
                    
264            NSString *string = [NSString stringWithFormat:@"Object value expected for key: %@", k];
                    
265            [self addErrorWithCode:EPARSE description: string];
                    
302            // check for 
                    
303            id t = [[NSString alloc] initWithBytesNoCopy:(char*)c
                    
304                                                  length:len
                    
340                default:
                    
341                    [self addErrorWithCode:EESCAPE description: [NSString stringWithFormat:@"Illegal escape sequence '0x%x'", uc]];
                    
342                    return NO;
                    
                
ControlsViewController.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 414 lines
                    
58
                    
59static NSString *kSectionTitleKey = @"sectionTitleKey";
                    
60static NSString *kLabelKey = @"labelKey";
                    
60static NSString *kLabelKey = @"labelKey";
                    
61static NSString *kSourceKey = @"sourceKey";
                    
62static NSString *kViewKey = @"viewKey";
                    
64// tableView cell id constants
                    
65static NSString *kDisplayCellID = @"DisplayCellID";
                    
66static NSString *kSourceCellID = @"SourceCellID";
                    
155
                    
156- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
                    
157{
                    
                
ButtonsViewController.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 447 lines
                    
55
                    
56static NSString *kSectionTitleKey = @"sectionTitleKey";
                    
57static NSString *kLabelKey = @"labelKey";
                    
57static NSString *kLabelKey = @"labelKey";
                    
58static NSString *kSourceKey = @"sourceKey";
                    
59static NSString *kViewKey = @"viewKey";
                    
61// tableView cell id constants
                    
62static NSString *kDisplayCellID = @"DisplayCellID";
                    
63static NSString *kSourceCellID = @"SourceCellID";
                    
151
                    
152- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
                    
153{
                    
220
                    
221+ (UIButton *)newButtonWithTitle:(NSString *)title
                    
222					   target:(id)target
                    
                
ControlsViewController.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 453 lines
                    
58
                    
59static NSString *kSectionTitleKey = @"sectionTitleKey";
                    
60static NSString *kLabelKey = @"labelKey";
                    
60static NSString *kLabelKey = @"labelKey";
                    
61static NSString *kSourceKey = @"sourceKey";
                    
62static NSString *kViewKey = @"viewKey";
                    
201
                    
202- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
                    
203{
                    
227	{
                    
228		static NSString *kDisplayCell_ID = @"DisplayCellID";
                    
229		cell = [self.tableView dequeueReusableCellWithIdentifier:kDisplayCell_ID];
                    
250	{
                    
251		static NSString *kSourceCellID = @"SourceCellID";
                    
252		cell = [self.tableView dequeueReusableCellWithIdentifier:kSourceCellID];
                    
                
ListController.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 618 lines
                    
72@property (nonatomic, retain)   NSMutableArray *  listEntries;
                    
73@property (nonatomic, copy)     NSString *        status;
                    
74
                    
74
                    
75- (void)_updateStatus:(NSString *)statusString;
                    
76
                    
95
                    
96- (void)_updateStatus:(NSString *)statusString
                    
97{
                    
110
                    
111- (void)_receiveDidStopWithStatus:(NSString *)statusString
                    
112{
                    
181
                    
182- (void)_stopReceiveWithStatus:(NSString *)statusString
                    
183    // Shuts down the connection and displays the result (statusString == nil) 
                    
                
FMDatabase.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 761 lines
                    
5
                    
6+ (id)databaseWithPath:(NSString*)aPath {
                    
7    return [[[self alloc] initWithPath:aPath] autorelease];
                    
9
                    
10- (id)initWithPath:(NSString*)aPath {
                    
11    self = [super init];
                    
32
                    
33+ (NSString*)sqliteLibVersion {
                    
34    return [NSString stringWithFormat:@"%s", sqlite3_libversion()];
                    
36
                    
37- (NSString *)databasePath {
                    
38    return databasePath;
                    
111
                    
112- (FMStatement*)cachedStatementForQuery:(NSString*)query {
                    
113    return [cachedStatements objectForKey:query];
                    
                
MGLine.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 552 lines
                    
47
                    
48+ (id)multilineWithText:(NSString *)text font:(UIFont *)font width:(CGFloat)width
                    
49                padding:(UIEdgeInsets)padding {
                    
105
                    
106  // wrap NSStrings and UIImages
                    
107  [self wrapRawContents:self.leftItems align:NSTextAlignmentLeft];
                    
155    id item = contents[i];
                    
156    if ([item isKindOfClass:NSString.class]) {
                    
157      UILabel *label = [self makeLabel:item align:align];
                    
428
                    
429- (UILabel *)makeLabel:(NSString *)text
                    
430                 align:(UITextAlignment)align {
                    
                
UIColor+MGExpanded.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 618 lines
                    
21
                    
22- (NSString *)styleString;
                    
23
                    
28
                    
29+ (UIColor *)searchForColorByName:(NSString *)cssColorName;
                    
30
                    
40
                    
41- (NSString *)colorSpaceString {
                    
42  switch (self.colorSpaceModel) {
                    
379
                    
380- (NSString *)stringFromColor {
                    
381  NSAssert(self.canProvideRGBComponents, @"Must be an RGB color to use -stringFromColor");
                    
381  NSAssert(self.canProvideRGBComponents, @"Must be an RGB color to use -stringFromColor");
                    
382  NSString *result;
                    
383  switch (self.colorSpaceModel) {
                    
                
MGLine.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 867 lines
                    
56
                    
57+ (id)lineWithMultilineLeft:(NSString *)left right:(id)right width:(CGFloat)width
                    
58                  minHeight:(CGFloat)height {
                    
66
                    
67+ (id)lineWithLeft:(id)left multilineRight:(NSString *)right width:(CGFloat)width
                    
68         minHeight:(CGFloat)height {
                    
76
                    
77+ (id)multilineWithText:(NSString *)text font:(UIFont *)font width:(CGFloat)width
                    
78                padding:(UIEdgeInsets)padding {
                    
118
                    
119  // wrap NSStrings, NSAttributedStrings, and UIImages
                    
120  [self wrapRawContents:self.leftItems placement:MGLeft];
                    
188    id item = items[i];
                    
189    if ([item isKindOfClass:NSString.class]
                    
190        || [item isKindOfClass:NSAttributedString.class]) {
                    
                
README.markdown https://gitlab.com/praveenvelanati/ios-demo | Markdown | 476 lines
                    
12- Grid layouts (similar to `UICollectionView`, but less fuss)
                    
13- Table rows automatically layout `NSStrings`, `UIImages`, 
                    
14  `NSAttributedStrings`, and multiline text
                    
344
                    
345The items arrays can contain `NSStrings`, `UIImages`, or any arbitrary `UIViews` you want to add to the line (eg switches, sliders, buttons, etc).
                    
346
                    
388
                    
389The `font`, `middleFont`, and `rightFont` properties define what fonts are used to wrap `NSStrings`. If no right or middle font is set, the main `font` value is used.
                    
390
                    
                
CC3GLMatrix.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 1045 lines
                    
220
                    
221-(NSString*) description {
                    
222	GLfloat* m = self.glMatrix;
                    
                
CC3Foundation.m https://gitlab.com/praveenvelanati/ios-demo | Objective C | 570 lines
                    
36
                    
37NSString* NSStringFromCC3Vector(CC3Vector v) {
                    
38	return [NSString stringWithFormat: @"(%.3f, %.3f, %.3f)", v.x, v.y, v.z];
                    
173
                    
174NSString* NSStringFromCC3AngularVector(CC3AngularVector av) {
                    
175	return [NSString stringWithFormat: @"(%.3f, %.3f, %.3f)", av.heading, av.inclination, av.radius];
                    
223
                    
224NSString* NSStringFromCC3Vector4(CC3Vector4 v) {
                    
225	return [NSString stringWithFormat: @"(%.3f, %.3f, %.3f, %.3f)", v.x, v.y, v.z, v.w];
                    
363
                    
364NSString* NSStringFromCC3Plane(CC3Plane p) {
                    
365	return [NSString stringWithFormat: @"(%.3f, %.3f, %.3f, %.3f)", p.a, p.b, p.c, p.d];
                    
456
                    
457NSString* NSStringFromCCC4F(ccColor4F rgba) {
                    
458	return [NSString stringWithFormat: @"(%.2f, %.2f, %.2f, %.2f)", rgba.r, rgba.g, rgba.b, rgba.a];
                    
                
CC3Foundation.h https://gitlab.com/praveenvelanati/ios-demo | C Header | 563 lines
                    
94/** Returns a string description of the specified CC3Vector struct in the form "(x, y, z)" */
                    
95NSString* NSStringFromCC3Vector(CC3Vector v);
                    
96
                    
249/** Returns a string description of the specified CC3AngularVector struct in the form "(heading, inclination, radius)" */
                    
250NSString* NSStringFromCC3AngularVector(CC3AngularVector av);
                    
251
                    
294/** Returns a string description of the specified CC3Vector4 struct in the form "(x, y, z, w)" */
                    
295NSString* NSStringFromCC3Vector4(CC3Vector4 v);
                    
296
                    
                
AFDateExtension.swift https://gitlab.com/praveenvelanati/AFDateHelper | Swift | 945 lines
                    
85        
                    
86        let string = string as NSString
                    
87        
                    
94            let range = NSRange(location: startIndex, length: endIndex-startIndex)
                    
95            let milliseconds = (string.substringWithRange(range) as NSString).longLongValue
                    
96            let interval = NSTimeInterval(milliseconds / 1000)
                    
                
SChartSeries.h https://gitlab.com/trungminhnt/sampleShinobi | C Header | 358 lines
                    
119 @return A string that will be used to represent a value for a data point.*/
                    
120- (NSString*) stringForValueWithKey:(NSString*) key withDataPoint:(id<SChartData>) dataPoint usingAxis:(SChartAxis*) axis;
                    
121
                    
128 @return A string that will be used to represent the given key for a data point.*/
                    
129- (NSString*) stringForKey:(NSString*) key withDataPoint:(id<SChartData>) dataPoint;
                    
130
                    
157/** Used for data points which contain multiple values (e.g. OHLC data points).  Returns the keys for the x values of the data point.*/
                    
158- (NSArray SC_GENERIC(NSString *) *)xValueKeys;
                    
159
                    
160/** Used for data points which contain multiple values (e.g. OHLC data points).  Returns the keys for the y values of the data point. */
                    
161- (NSArray SC_GENERIC(NSString *) *)yValueKeys;
                    
162
                    
163/** Used for data points which contain values that are independent of axes (e.g. Bubble data points).  Returns the keys for the axis independent values of the data point.*/
                    
164- (NSArray SC_GENERIC(NSString *) *)valueKeys;
                    
165
                    
                
PTPusher.m https://gitlab.com/trungminhnt/sampleShinobi | Objective C | 458 lines
                    
28
                    
29NSURL *PTPusherConnectionURL(NSString *host, NSString *key, NSString *clientID, BOOL secure);
                    
30
                    
41
                    
42NSURL *PTPusherConnectionURL(NSString *host, NSString *key, NSString *clientID, BOOL encrypted)
                    
43{
                    
102{
                    
103  return [self pusherWithKey:(NSString *)key delegate:(id<PTPusherDelegate>)delegate encrypted:(BOOL)isEncrypted cluster:(NSString *) nil];
                    
104}
                    
105
                    
106+ (instancetype)pusherWithKey:(NSString *)key delegate:(id<PTPusherDelegate>)delegate encrypted:(BOOL)isEncrypted cluster:(NSString *) cluster
                    
107{
                    
283
                    
284- (void)sendEventNamed:(NSString *)name data:(id)data channel:(NSString *)channelName
                    
285{
                    
                
SRWebSocket.m https://gitlab.com/trungminhnt/sampleShinobi | Objective C | 1511 lines
                    
71
                    
72static NSString *const SRWebSocketAppendToSecKeyString = @"258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
                    
73
                    
74static inline int32_t validate_dispatch_data_partial_string(NSData *data);
                    
75static inline void SRFastLog(NSString *format, ...);
                    
76
                    
78
                    
79- (NSString *)stringBySHA1ThenBase64Encoding;
                    
80
                    
83
                    
84@interface NSString (SRWebSocket)
                    
85
                    
85
                    
86- (NSString *)stringBySHA1ThenBase64Encoding;
                    
87
                    
                
AFURLRequestSerialization.h https://gitlab.com/trungminhnt/sampleShinobi | C Header | 476 lines
                    
145 */
                    
146- (void)setValue:(nullable NSString *)value
                    
147forHTTPHeaderField:(NSString *)field;
                    
155 */
                    
156- (nullable NSString *)valueForHTTPHeaderField:(NSString *)field;
                    
157
                    
163 */
                    
164- (void)setAuthorizationHeaderFieldWithUsername:(NSString *)username
                    
165                                       password:(NSString *)password;
                    
200 */
                    
201- (void)setQueryStringSerializationWithBlock:(nullable NSString * (^)(NSURLRequest *request, id parameters, NSError * __autoreleasing *error))block;
                    
202
                    
209 */
                    
210- (NSMutableURLRequest *)requestWithMethod:(NSString *)method
                    
211                                 URLString:(NSString *)URLString
                    
                
AFURLSessionManager.m https://gitlab.com/trungminhnt/sampleShinobi | Objective C | 1133 lines
                    
56
                    
57NSString * const AFNetworkingTaskDidResumeNotification = @"com.alamofire.networking.task.resume";
                    
58NSString * const AFNetworkingTaskDidCompleteNotification = @"com.alamofire.networking.task.complete";
                    
58NSString * const AFNetworkingTaskDidCompleteNotification = @"com.alamofire.networking.task.complete";
                    
59NSString * const AFNetworkingTaskDidSuspendNotification = @"com.alamofire.networking.task.suspend";
                    
60NSString * const AFURLSessionDidInvalidateNotification = @"com.alamofire.networking.session.invalidate";
                    
60NSString * const AFURLSessionDidInvalidateNotification = @"com.alamofire.networking.session.invalidate";
                    
61NSString * const AFURLSessionDownloadTaskDidFailToMoveFileNotification = @"com.alamofire.networking.session.download.file-manager-error";
                    
62
                    
62
                    
63NSString * const AFNetworkingTaskDidStartNotification = @"com.alamofire.networking.task.resume"; // Deprecated
                    
64NSString * const AFNetworkingTaskDidFinishNotification = @"com.alamofire.networking.task.complete"; // Deprecated
                    
65
                    
66NSString * const AFNetworkingTaskDidCompleteSerializedResponseKey = @"com.alamofire.networking.task.complete.serializedresponse";
                    
67NSString * const AFNetworkingTaskDidCompleteResponseSerializerKey = @"com.alamofire.networking.task.complete.responseserializer";
                    
                
AFURLResponseSerialization.m https://gitlab.com/trungminhnt/sampleShinobi | Objective C | 825 lines
                    
31
                    
32NSString * const AFURLResponseSerializationErrorDomain = @"com.alamofire.error.serialization.response";
                    
33NSString * const AFNetworkingOperationFailingURLResponseErrorKey = @"com.alamofire.serialization.response.error.response";
                    
118                NSMutableDictionary *mutableUserInfo = [@{
                    
119                                                          NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@"Request failed: unacceptable content-type: %@", @"AFNetworking", nil), [response MIMEType]],
                    
120                                                          NSURLErrorFailingURLErrorKey:[response URL],
                    
134            NSMutableDictionary *mutableUserInfo = [@{
                    
135                                               NSLocalizedDescriptionKey: [NSString stringWithFormat:NSLocalizedStringFromTable(@"Request failed: %@ (%ld)", @"AFNetworking", nil), [NSHTTPURLResponse localizedStringForStatusCode:response.statusCode], (long)response.statusCode],
                    
136                                               NSURLErrorFailingURLErrorKey:[response URL],
                    
187    [coder encodeObject:self.acceptableStatusCodes forKey:NSStringFromSelector(@selector(acceptableStatusCodes))];
                    
188    [coder encodeObject:self.acceptableContentTypes forKey:NSStringFromSelector(@selector(acceptableContentTypes))];
                    
189}
                    
253    @autoreleasepool {
                    
254        NSString *responseString = [[NSString alloc] initWithData:data encoding:stringEncoding];
                    
255        if (responseString && ![responseString isEqualToString:@" "]) {
                    
                
AFURLConnectionOperation.m https://gitlab.com/trungminhnt/sampleShinobi | Objective C | 792 lines
                    
59
                    
60static NSString * const kAFNetworkingLockName = @"com.alamofire.networking.operation.lock";
                    
61
                    
61
                    
62NSString * const AFNetworkingOperationDidStartNotification = @"com.alamofire.networking.operation.start";
                    
63NSString * const AFNetworkingOperationDidFinishNotification = @"com.alamofire.networking.operation.finish";
                    
70
                    
71static inline NSString * AFKeyPathFromOperationState(AFOperationState state) {
                    
72    switch (state) {
                    
138@property (readwrite, nonatomic, strong) NSData *responseData;
                    
139@property (readwrite, nonatomic, copy) NSString *responseString;
                    
140@property (readwrite, nonatomic, assign) NSStringEncoding responseStringEncoding;
                    
229
                    
230- (NSString *)responseString {
                    
231    [self.lock lock];
                    
                
vf_coreimage.m https://gitlab.com/sjchen1981/FFmpeg | Objective C | 688 lines
                    
105
                    
106    NSString *filter_name;
                    
107    while (filter_name = [filters nextObject]) {
                    
108        av_log(ctx, AV_LOG_INFO, "Filter: %s\n", [filter_name UTF8String]);
                    
109        NSString *input;
                    
110
                    
111        CIFilter *filter             = [CIFilter filterWithName:filter_name];
                    
112        NSDictionary *filter_attribs = [filter attributes]; // <nsstring, id>
                    
113        NSArray      *filter_inputs  = [filter inputKeys];  // <nsstring>
                    
294        @try {
                    
295            NSString *tmp_string = [NSString stringWithUTF8String:ctx->output_rect];
                    
296            NSRect tmp           = NSRectFromString(tmp_string);
                    
359{
                    
360        NSString *input_key = [NSString stringWithUTF8String:key];
                    
361        NSString *input_val = [NSString stringWithUTF8String:value];
                    
                
objsql.mm https://gitlab.com/Aaeinstein54/linguist | Objective C++ | 1372 lines
                    
12 *  useful operations such as access to NSArrays and NSDictionary
                    
13 *  by subscript or NSString operators such as + for concatenation.
                    
14 *
                    
61
                    
62static NSString *kOOObject = @"__OOOBJECT__", *kOOInsert = @"__ISINSERT__", *kOOUpdate = @"__ISUPDATE__", *kOOExecSQL = @"__OOEXEC__";
                    
63
                    
222	va_list argp; va_start(argp, fmt);
                    
223	NSString *sql = [[NSString alloc] initWithFormat:fmt arguments:argp];
                    
224	va_end( argp );
                    
316	va_list argp; va_start(argp, fmt);
                    
317	NSString *sql = [[NSString alloc] initWithFormat:fmt arguments:argp];
                    
318	va_end( argp );
                    
329	va_list argp; va_start(argp, fmt);
                    
330	NSString *sql = OO_AUTORELEASE( [[NSString alloc] initWithFormat:fmt arguments:argp] );
                    
331	va_end( argp );
                    
                
ViewController.m https://gitlab.com/eduardo.alencar/digitorj | Objective C | 397 lines
                    
69            Label = (__bridge NSString *)(ABMultiValueCopyLabelAtIndex(multiPhones, j));
                    
70            NSString *pNumber = (__bridge NSString *) phoneNumberRef;
                    
71            pNumber = [[[[[pNumber stringByReplacingOccurrencesOfString:@"-" withString:@""] stringByReplacingOccurrencesOfString:@" " withString:@""]stringByReplacingOccurrencesOfString:@"+" withString:@""] stringByReplacingOccurrencesOfString:@"(" withString:@""] stringByReplacingOccurrencesOfString:@")" withString:@""];
                    
75                if (bnovo){
                    
76                    Label = [NSString stringWithFormat:@"%@ - %@",[[Label stringByReplacingOccurrencesOfString:@"_$!<" withString:@""]stringByReplacingOccurrencesOfString:@">!$_" withString:@""], [lsufixo text]];
                    
77                }
                    
84                    CFStringRef phoneNumberRef = ABMultiValueCopyValueAtIndex(multi, j);
                    
85                    NSString *pNumber = (__bridge NSString *) phoneNumberRef;
                    
86                    pNumber = [[[[[pNumber stringByReplacingOccurrencesOfString:@"-" withString:@""] stringByReplacingOccurrencesOfString:@" " withString:@""]stringByReplacingOccurrencesOfString:@"+" withString:@""] stringByReplacingOccurrencesOfString:@"(" withString:@""] stringByReplacingOccurrencesOfString:@")" withString:@""];
                    
172{
                    
173    //NSString* name = (__bridge_transfer NSString*)ABRecordCopyValue(person, kABPersonFirstNameProperty);
                    
174    NSString* phone = nil;
                    
185
                    
186-(NSString *)startFormat:(NSString *)Number {
                    
187    if (Number != Nil){
                    
                
SwiftyJSON.swift https://gitlab.com/joaopaulogalvao/browteco | Swift | 1378 lines
                    
93
                    
94    - parameter object:  The object must have the following properties: All objects are NSString/String, NSNumber/Int/Float/Double/Bool, NSArray/Array, NSDictionary/Dictionary, or NSNull; All dictionary keys are NSStrings/String; NSNumbers are not NaN or infinity.
                    
95
                    
                
WebSocket.swift https://gitlab.com/joaopaulogalvao/browteco | Swift | 838 lines
                    
250    //Add a header to the CFHTTPMessage by using the NSString bridges to CFString
                    
251    private func addHeader(urlRequest: CFHTTPMessage, key: NSString, val: NSString) {
                    
252        CFHTTPMessageSetHeaderFieldValue(urlRequest, key, val)
                    
274        var writeStream: Unmanaged<CFWriteStream>?
                    
275        let h: NSString = url.host!
                    
276        CFStreamCreatePairWithSocketToHost(nil, h, UInt32(port), &readStream, &writeStream)
                    
                
JSQMessagesViewController.m https://gitlab.com/joaopaulogalvao/browteco | Objective C | 1061 lines
                    
38
                    
39#import "NSString+JSQMessages.h"
                    
40#import "UIColor+JSQMessages.h"
                    
69
                    
70- (NSString *)jsq_currentlyComposedMessageText;
                    
71
                    
107{
                    
108    return [UINib nibWithNibName:NSStringFromClass([JSQMessagesViewController class])
                    
109                          bundle:[NSBundle bundleForClass:[JSQMessagesViewController class]]];
                    
113{
                    
114    return [[[self class] alloc] initWithNibName:NSStringFromClass([JSQMessagesViewController class])
                    
115                                          bundle:[NSBundle bundleForClass:[JSQMessagesViewController class]]];
                    
315- (void)didPressSendButton:(UIButton *)button
                    
316           withMessageText:(NSString *)text
                    
317                  senderId:(NSString *)senderId
                    
                
PushPlugin.m https://gitlab.com/boxnia/NFU_MOVIL | Objective C | 611 lines
                    
54    __weak __block PushPlugin *weakSelf = self;
                    
55    gcmRegistrationHandler = ^(NSString *registrationToken, NSError *error){
                    
56        if (registrationToken != nil) {
                    
61            if (topics != nil) {
                    
62                for (NSString *topic in topics) {
                    
63                    NSLog(@"subscribe from topic: %@", topic);
                    
65                    [pubSub subscribeWithToken: [weakSelf gcmRegistrationToken]
                    
66                        topic:[NSString stringWithFormat:@"/topics/%@", topic]
                    
67                        options:nil
                    
103
                    
104- (void)willSendDataMessageWithID:(NSString *)messageID error:(NSError *)error {
                    
105    NSLog(@"willSendDataMessageWithID");
                    
112
                    
113- (void)didSendDataMessageWithID:(NSString *)messageID {
                    
114    NSLog(@"willSendDataMessageWithID");
                    
                
CDVStatusBar.m https://gitlab.com/boxnia/NFU_MOVIL | Objective C | 480 lines
                    
79
                    
80- (id)settingForKey:(NSString*)key
                    
81{
                    
84
                    
85- (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context
                    
86{
                    
120
                    
121    NSString* setting;
                    
122
                    
170    [self updateIsVisible:![UIApplication sharedApplication].statusBarHidden];
                    
171    NSString* setting = @"StatusBarOverlaysWebView";
                    
172    if ([self settingForKey:setting]) {
                    
275
                    
276- (void) setStatusBarStyle:(NSString*)statusBarStyle
                    
277{
                    
                
ImageNameTest.m https://gitlab.com/boxnia/NFU_MOVIL | Objective C | 702 lines
                    
36// expose private interface
                    
37- (NSString*)getImageName:(UIInterfaceOrientation)currentOrientation delegate:(id<CDVScreenOrientationDelegate>)orientationDelegate device:(CDV_iOSDevice)device;
                    
38
                    
56    
                    
57    NSString* name = nil;
                    
58    NSString* expectedImageName = nil;
                    
59    UIInterfaceOrientation currentOrientation;
                    
60    NSString* deviceName = device.iPad? @"iPad" : device.iPhone6Plus? @"iPhone6Plus": device.iPhone6? @"iPhone6": device.iPhone5? @"iPhone5" : @"iPhone";
                    
61    
                    
                
CDVSplashScreen.m https://gitlab.com/boxnia/NFU_MOVIL | Objective C | 461 lines
                    
56
                    
57- (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context
                    
58{
                    
81
                    
82    NSString* topActivityIndicator = [self.commandDelegate.settings objectForKey:[@"TopActivityIndicator" lowercaseString]];
                    
83    UIActivityIndicatorViewStyle topActivityIndicatorStyle = UIActivityIndicatorViewStyleGray;
                    
169
                    
170- (NSString*)getImageName:(UIInterfaceOrientation)currentOrientation delegate:(id<CDVScreenOrientationDelegate>)orientationDelegate device:(CDV_iOSDevice)device
                    
171{
                    
172    // Use UILaunchImageFile if specified in plist.  Otherwise, use Default.
                    
173    NSString* imageName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UILaunchImageFile"];
                    
174    
                    
303{
                    
304    NSString* imageName = [self getImageName:[self getCurrentOrientation] delegate:(id<CDVScreenOrientationDelegate>)self.viewController device:[self getCurrentDevice]];
                    
305
                    
                
 

Source

Language