-
Notifications
You must be signed in to change notification settings - Fork 285
Expand file tree
/
Copy pathNSArray+StringArray.h
More file actions
33 lines (28 loc) · 912 Bytes
/
NSArray+StringArray.h
File metadata and controls
33 lines (28 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// NSArray+StringArray.h
// ObjectiveGitFramework
//
// Created by Danny Greg on 08/08/2013.
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <ObjectiveGit/git2/strarray.h>
@interface NSArray (StringArray)
/// Creates an `NSString` array from a `git_strarray`.
///
/// The `git_strarray` must still be freed using `git_strarray_free` after use.
///
/// strarray - The `git_strarray` to convert.
///
/// Returns a new array with the contents of `strarray` converted to
/// `NSString`s.
+ (instancetype)git_arrayWithStrarray:(git_strarray)strarray;
/// Creates and returns a `git_strarray` given an `NSArray` of `NSString`s.
///
/// Must only be called with an array of `NSString`s, otherwise an assertion
/// will fail.
///
/// Returns a `git_strarray` which must be freed using `git_strarray_free` after
/// use.
- (git_strarray)git_strarray;
@end