Latest 1.0.0
Homepage https://github.com/SnugJoker/PBJString
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform
BCH compliance

Description

NSString class category for more powerful string handling.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

No requirements needed.

Installation

PBJString is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'PBJString'

How To Use

To use PBJAnimations first import the class:

#import "NSString+PBJString.h"

Then simply add one of the methods to your code:

Objective C

+(BOOL)isStringNullOrEmpty:(NSString *)string;
+(BOOL)isString:(NSString *)primary ContainsAnotherString:(NSString *)secondary;

+(NSString *)returnEmptyStringIfNil:(NSString *)string;
+(NSString *)returnStringOfBooleanWord:(BOOL)trueOrFalse;

+(NSString *)trimLeadingAndTrailingWhiteSpacesFromString:(NSString *)string;
+(NSString *)trimNumbersOutOfString:(NSString *)string;

+(NSString *)truncateString:(NSString *)string toLength:(int)length;

+(NSString *)stringWithUTF8Format:(NSString *)string;

+(BOOL)isStringContainsOnlyNumbers:(NSString *)string;
+(BOOL)isStringContainsAnyNumbers:(NSString *)string;

+(NSNumber *)convertStringToNumber:(NSString *)string;

+(NSString *)addHTMLRightAlignmentToString:(NSString *)string;
+(NSString *)addHTMLLeftAlignmentToString:(NSString *)string;
+(NSString *)addHTMLCenterAlignmentToString:(NSString *)string;

Author

Joseph Razon, [email protected]

License

PBJString is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PBJString",
    "version": "1.0.0",
    "summary": "Animations & transitions framework.",
    "description": "PBJString is a simple NSString category.",
    "homepage": "https://github.com/SnugJoker/PBJString",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Joseph Razon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/SnugJoker/PBJString.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PBJString/Classes/*",
    "public_header_files": "PBJString/Classes/*.h"
}

Pin It on Pinterest

Share This