Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about + (NSString *)stringWithPJString:(const pj_str_t *)pjString; #35

Open
azav opened this issue Jul 18, 2016 · 0 comments
Open

Comments

@azav
Copy link

azav commented Jul 18, 2016

Is there a reason why you went with your approach over this?

  • (NSString *)stringFromPJCharString:(const pj_str_t *)pjString
    {
    NSString *result = [NSString stringWithCString:pjString->ptr encoding:NSASCIIStringEncoding];
    return result;
    }

And use it like this:
NSString *someStringFromSomePJString = [PJUtil stringFromPJCharString:&my_pj_str]];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant