https://github.com/iosdec/lrstring
(L)left(R)ight(String) Generator for Xcode (Objective-C) - useful for receipts.
https://github.com/iosdec/lrstring
left nsstring objective-c receipt right xcode
Last synced: about 1 month ago
JSON representation
(L)left(R)ight(String) Generator for Xcode (Objective-C) - useful for receipts.
- Host: GitHub
- URL: https://github.com/iosdec/lrstring
- Owner: iosdec
- License: mit
- Created: 2018-11-21T15:16:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T15:23:13.000Z (almost 7 years ago)
- Last Synced: 2025-06-03T13:15:49.513Z (4 months ago)
- Topics: left, nsstring, objective-c, receipt, right, xcode
- Language: Objective-C
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LRString
Generate Left / Right string easily with options. This is very useful for generating receipt lines that look something like this:
```
Coffee £2.54
Beef Sandwich £4.50
Cola £0.49
```## Import
```objc
#import "LRString.h"
```## Usage
```objc
NSString *coffee_line = [LRString LRStringWithLeft:@"Coffee" right:@"£2.54" maxlength:29 maxleft:16 maxright:11];NSString *beef_line = [LRString LRStringWithLeft:@"Beef Sandwich" right:@"£4.50" maxlength:29 maxleft:16 maxright:11];
NSString *cola_line = [LRString LRStringWithLeft:@"Cola" right:@"£0.49" maxlength:29 maxleft:16 maxright:11];
```## Credits
Declan Land