/*
 * CPString_Base64.j
 *
 * Created by Philippe Laval on 2009/03/19.
 * Copyright 2009 Philippe Laval. All rights reserved.
 */

@import <Foundation/CPObject.j>

// PLL : Needed for cappuccino 0.6 (starter) : base64 encoding/decoding
// From utilities.js found on git site (should be present in next release of cappuccino)
@import "Utilities.j"

// PLL : my modest contribution :-)
@implementation CPString (base64)
 
// Returns a base64 encoded string.
- (CPString)encodeBase64
{
    return base64_encode_string(self);
}
 
// Returns a string decoded from its base64 representation.
- (CPString)decodeBase64
{
    return base64_decode_to_string(self);
}

@end





