Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

iosdec/LRString

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

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

#import "LRString.h"

Usage

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

About

(L)left(R)ight(String) Generator for Xcode (Objective-C) - useful for receipts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /