-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLRString.h
More file actions
25 lines (21 loc) · 819 Bytes
/
LRString.h
File metadata and controls
25 lines (21 loc) · 819 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
//
// LRString.h
// iOSDec
//
// Created by Declan Land
// Copyright Declan Land. All rights reserved.
//
#import <UIKit/UIKit.h>
/*! @brief (L)eft(R)ight(String). */
@interface LRString : NSObject
/*!
@brief Generate Left/Right string with options.
@discussion If the left string exceeds the maxleft length, the last 3 characters get removed from it and replaced with ...
@param left String that will be on the left.
@param right String that will be on the right.
@param maxlength Maximum length of the whole string.
@param maxleft Maximum length of the left string (... gets appended if it exceeds).
@param maxright Maximum length of the right string.
*/
+ (NSString *)LRStringWithLeft:(NSString *)left right:(NSString *)right maxlength:(int)maxlength maxleft:(int)maxleft maxright:(int)maxright;
@end