PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 23, 2019 10:48 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Mon Feb 09, 2009 11:25 pm 
Offline
Forum Commoner

Joined: Thu Aug 28, 2008 7:03 pm
Posts: 55


Last edited by André D on Thu Feb 19, 2009 2:07 am, edited 5 times in total.

Top
 Profile  
 
PostPosted: Mon Feb 09, 2009 11:26 pm 
Offline
Forum Commoner

Joined: Thu Aug 28, 2008 7:03 pm
Posts: 55


Top
 Profile  
 
PostPosted: Thu Feb 19, 2009 9:15 am 
Offline
DevNet Resident
User avatar

Joined: Sun Sep 03, 2006 5:19 am
Posts: 1579
Location: Sofia, Bulgaria
I haven't read the code in detail, so I won't comment on that, just a quick note that you the pad character can be not in the encoding alphabet - is this intentional, or did you just forget to check.
A second point is go check the google chart API and provide shortcut implementations for their encodings (I reckon this will be a popular feature)


Top
 Profile  
 
PostPosted: Thu Feb 19, 2009 12:52 pm 
Offline
Forum Commoner

Joined: Thu Aug 28, 2008 7:03 pm
Posts: 55


Top
 Profile  
 
PostPosted: Thu Feb 19, 2009 3:38 pm 
Offline
Forum Commoner

Joined: Thu Aug 28, 2008 7:03 pm
Posts: 55
I may have misinterpreted what you were saying; sorry. You are right if you are saying that I don't check to make sure that the pad character is not in the alphabet. I left that up to the user, but maybe I should add a check. Good point.


Top
 Profile  
 
PostPosted: Fri Feb 20, 2009 12:40 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
Just curious, is there such a thing as base128 that uses all 7 bits available for all US-ASCII characters?

Not that it would look very neat with all those WS/control characters in there :P


Top
 Profile  
 
PostPosted: Fri Feb 20, 2009 4:13 pm 
Offline
Forum Commoner

Joined: Thu Aug 28, 2008 7:03 pm
Posts: 55


Top
 Profile  
 
PostPosted: Fri May 17, 2013 7:43 pm 
Offline
Forum Commoner

Joined: Thu Aug 28, 2008 7:03 pm
Posts: 55
Since I first posted this code, it has founds its way into a few open source projects, which is great.

This class, renamed Base2n, is now maintained in a Git repository:

Check the repository if you want the latest version, under the MIT license.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group