library/src/decoders/HTML/BP-HTMLDecoder.cc
// Returns a NULL terminated c style character string based off a BP anchor
// protocol value. NULL on failure.
Returns a NULL terminated c style character string based off a BP anchor
protocol value. NULL on failure.
Returns a NULL terminated c style character string based off a BP anchor protocol value . NULL on failure .
char * HTMLGetAnchorProtocolStringFromVal(size_t val)
{
	switch(val){
		case BP_ANCHOR_PROTO_DEFAULT:
			return "default\0";
			break;
		case BP_ANCHOR_PROTO_ACAP:
			return "acap\0";
			break;
		case BP_ANCHOR_PROTO_ADDBOOK:
			return "addbook\0";
			break;
		case BP_ANCHOR_PROTO_AFP:
			return "afp\0";
			break;
		case BP_ANCHOR_PROTO_AFS:
			return "afs\0";
			break;
		case BP_ANCHOR_PROTO_AIM:
			return "aim\0";
			break;
		case BP_ANCHOR_PROTO_CALLTO:
			return "callto\0";
			break;
		case BP_ANCHOR_PROTO_CASTANET:
			return "castanet\0";
			break;
		case BP_ANCHOR_PROTO_CHTTP:
			return "chttp\0";
			break;
		case BP_ANCHOR_PROTO_CID:
			return "cid\0";
			break;
		case BP_ANCHOR_PROTO_DATA:
			return "data\0";
			break;
		case BP_ANCHOR_PROTO_DAV:
			return "dav\0";
			break;
		case BP_ANCHOR_PROTO_DICT:
			return "dict\0";
			break;
		case BP_ANCHOR_PROTO_DNS:
			return "dns\0";
			break;
		case BP_ANCHOR_PROTO_EID:
			return "eid\0";
			break;
		case BP_ANCHOR_PROTO_FAX:
			return "fax\0";
			break;
		case BP_ANCHOR_PROTO_FILE:
			return "file\0";
			break;
		case BP_ANCHOR_PROTO_FINGER:
			return "finger\0";
			break;
		case BP_ANCHOR_PROTO_FREENET:
			return "freenet\0";
			break;
		case BP_ANCHOR_PROTO_FTP:
			return "ftp\0";
			break;
		case BP_ANCHOR_PROTO_FTPS:
			return "ftps\0";
			break;
		case BP_ANCHOR_PROTO_GOPHER:
			return "gopher\0";
			break;
		case BP_ANCHOR_PROTO_GSM_SMS:
			return "gsm-sms\0";
			break;
		case BP_ANCHOR_PROTO_H323:
			return "h323\0";
			break;
		case BP_ANCHOR_PROTO_H324:
			return "h324\0";
			break;
		case BP_ANCHOR_PROTO_HDL:
			return "hdl\0";
			break;
		case BP_ANCHOR_PROTO_HNEWS:
			return "hnews\0";
			break;
		case BP_ANCHOR_PROTO_HTTP:
			return "http\0";
			break;
		case BP_ANCHOR_PROTO_HTTPS:
			return "https\0";
			break;
		case BP_ANCHOR_PROTO_IIOPLOC:
			return "iioploc\0";
			break;
		case BP_ANCHOR_PROTO_ILU:
			return "ILU\0";
			break;
		case BP_ANCHOR_PROTO_IOR:
			return "IOR\0";
			break;
		case BP_ANCHOR_PROTO_IMAP:
			return "IMAP\0";
			break;
		case BP_ANCHOR_PROTO_IPP:
			return "IPP\0";
			break;
		case BP_ANCHOR_PROTO_IRC:
			return "IRC\0";
			break;
		case BP_ANCHOR_PROTO_JAR:
			return "JAR\0";
			break;
		case BP_ANCHOR_PROTO_JAVA:
			return "Java\0";
			break;
		case BP_ANCHOR_PROTO_JAVASCRIPT:
			return "javascript\0";
			break;
		case BP_ANCHOR_PROTO_JDBC:
			return "JDBC\0";
			break;
		case BP_ANCHOR_PROTO_LDAP:
			return "LDAP\0";
			break;
		case BP_ANCHOR_PROTO_LIFN:
			return "LIFN\0";
			break;
		case BP_ANCHOR_PROTO_LIVESCRIPT:
			return "LIVESCRIPT\0";
			break;
		case BP_ANCHOR_PROTO_ICQ:
			return "ICQ\0";
			break;
		case BP_ANCHOR_PROTO_IRQ:
			return "IRQ\0";
			break;
		case BP_ANCHOR_PROTO_MAILBOX:
			return "Mailbox\0";
			break;
		case BP_ANCHOR_PROTO_MAILTO:
			return "Mailto\0";
			break;
		case BP_ANCHOR_PROTO_MD5:
			return "MD5\0";
			break;
		case BP_ANCHOR_PROTO_MID:
			return "MID\0";
			break;
		case BP_ANCHOR_PROTO_MIDI:
			return "MIDI\0";
			break;
		case BP_ANCHOR_PROTO_MOCHA:
			return "MOCHA\0";
			break;
		case BP_ANCHOR_PROTO_MODEM:
			return "MODEM\0";
			break;
		case BP_ANCHOR_PROTO_NEWS:
			return "News\0";
			break;
		case BP_ANCHOR_PROTO_NFS:
			return "NFS\0";
			break;
		case BP_ANCHOR_PROTO_NNTP:
			return "NNTP\0";
			break;
		case BP_ANCHOR_PROTO_OPAQUELOCKTOKEN:
			return "OPAQUELOCKTOKEN\0";
			break;
		case BP_ANCHOR_PROTO_PHONE:
			return "PHONE\0";
			break;
		case BP_ANCHOR_PROTO_POP:
			return "POP\0";
			break;
		case BP_ANCHOR_PROTO_POP3:
			return "POP3\0";
			break;
		case BP_ANCHOR_PROTO_PRINTER:
			return "Printer\0";
			break;
		case BP_ANCHOR_PROTO_PROSPERO:
			return "Prospero\0";
			break;
		case BP_ANCHOR_PROTO_RES:
			return "Res\0";
			break;
		case BP_ANCHOR_PROTO_RSTP:
			return "RSTP\0";
			break;
		case BP_ANCHOR_PROTO_RVP:
			return "RVP\0";
			break;
		case BP_ANCHOR_PROTO_RWHOIS:
			return "RWHOIS\0";
			break;
		case BP_ANCHOR_PROTO_RX:
			return "RX\0";
			break;
		case BP_ANCHOR_PROTO_SDP:
			return "SDP\0";
			break;
		case BP_ANCHOR_PROTO_SERVICE:
			return "Service\0";
			break;
		case BP_ANCHOR_PROTO_SIP:
			return "SIP\0";
			break;
		case BP_ANCHOR_PROTO_SMB:
			return "SMB\0";
			break;
		case BP_ANCHOR_PROTO_SNEWS:
			return "SNEWS\0";
			break;
		case BP_ANCHOR_PROTO_SOAP_BEEP:
			return "Soap.Beep\0";
			break;
		case BP_ANCHOR_PROTO_SOAP_BEEPS:
			return "Soap.Beeps\0";
			break;
		case BP_ANCHOR_PROTO_T120:
			return "T128\0";
			break;
		case BP_ANCHOR_PROTO_TCP:
			return "TCP\0";
			break;
		case BP_ANCHOR_PROTO_TEL:
			return "TEL\0";
			break;
		case BP_ANCHOR_PROTO_TELNET:
			return "TELNET\0";
			break;
		case BP_ANCHOR_PROTO_TIP:
			return "TIP\0";
			break;
		case BP_ANCHOR_PROTO_TN3270:
			return "TN3270\0";
			break;
		case BP_ANCHOR_PROTO_TV:
			return "TV\0";
			break;
		case BP_ANCHOR_PROTO_URN:
			return "URN\0";
			break;
		case BP_ANCHOR_PROTO_UUID:
			return "UUID\0";
			break;
		case BP_ANCHOR_PROTO_VEMMI:
			return "Vemmi\0";
			break;
		case BP_ANCHOR_PROTO_VIDEOTEX:
			return "Videotex\0";
			break;
		case BP_ANCHOR_PROTO_VIEW_SOURCE:
			return "view-source\0";
			break;
		case BP_ANCHOR_PROTO_WAIS:
			return "wais\0";
			break;
		case BP_ANCHOR_PROTO_WHODP:
			return "WHODP\0";
			break;
		case BP_ANCHOR_PROTO_WHOIS:
			return "Whois\0";
			break;
		case BP_ANCHOR_PROTO_Z39_50R:
			return "z39.50r\0";
			break;
		case BP_ANCHOR_PROTO_Z39_50S:
			return "z39.50s\0";
			break;
		case BP_ANCHOR_PROTO_UNKNOWN:
			break;
	}
	return NULL;
}
char * HTMLGetAnchorProtocolStringFromVal ( size_t val ) { switch ( val ) { case BP_ANCHOR_PROTO_DEFAULT : return " \0 " ; break ; case BP_ANCHOR_PROTO_ACAP : return " \0 " ; break ; case BP_ANCHOR_PROTO_ADDBOOK : return " \0 " ; break ; case BP_ANCHOR_PROTO_AFP : return " \0 " ; break ; case BP_ANCHOR_PROTO_AFS : return " \0 " ; break ; case BP_ANCHOR_PROTO_AIM : return " \0 " ; break ; case BP_ANCHOR_PROTO_CALLTO : return " \0 " ; break ; case BP_ANCHOR_PROTO_CASTANET : return " \0 " ; break ; case BP_ANCHOR_PROTO_CHTTP : return " \0 " ; break ; case BP_ANCHOR_PROTO_CID : return " \0 " ; break ; case BP_ANCHOR_PROTO_DATA : return " \0 " ; break ; case BP_ANCHOR_PROTO_DAV : return " \0 " ; break ; case BP_ANCHOR_PROTO_DICT : return " \0 " ; break ; case BP_ANCHOR_PROTO_DNS : return " \0 " ; break ; case BP_ANCHOR_PROTO_EID : return " \0 " ; break ; case BP_ANCHOR_PROTO_FAX : return " \0 " ; break ; case BP_ANCHOR_PROTO_FILE : return " \0 " ; break ; case BP_ANCHOR_PROTO_FINGER : return " \0 " ; break ; case BP_ANCHOR_PROTO_FREENET : return " \0 " ; break ; case BP_ANCHOR_PROTO_FTP : return " \0 " ; break ; case BP_ANCHOR_PROTO_FTPS : return " \0 " ; break ; case BP_ANCHOR_PROTO_GOPHER : return " \0 " ; break ; case BP_ANCHOR_PROTO_GSM_SMS : return " \0 " ; break ; case BP_ANCHOR_PROTO_H323 : return " \0 " ; break ; case BP_ANCHOR_PROTO_H324 : return " \0 " ; break ; case BP_ANCHOR_PROTO_HDL : return " \0 " ; break ; case BP_ANCHOR_PROTO_HNEWS : return " \0 " ; break ; case BP_ANCHOR_PROTO_HTTP : return " \0 " ; break ; case BP_ANCHOR_PROTO_HTTPS : return " \0 " ; break ; case BP_ANCHOR_PROTO_IIOPLOC : return " \0 " ; break ; case BP_ANCHOR_PROTO_ILU : return " \0 " ; break ; case BP_ANCHOR_PROTO_IOR : return " \0 " ; break ; case BP_ANCHOR_PROTO_IMAP : return " \0 " ; break ; case BP_ANCHOR_PROTO_IPP : return " \0 " ; break ; case BP_ANCHOR_PROTO_IRC : return " \0 " ; break ; case BP_ANCHOR_PROTO_JAR : return " \0 " ; break ; case BP_ANCHOR_PROTO_JAVA : return " \0 " ; break ; case BP_ANCHOR_PROTO_JAVASCRIPT : return " \0 " ; break ; case BP_ANCHOR_PROTO_JDBC : return " \0 " ; break ; case BP_ANCHOR_PROTO_LDAP : return " \0 " ; break ; case BP_ANCHOR_PROTO_LIFN : return " \0 " ; break ; case BP_ANCHOR_PROTO_LIVESCRIPT : return " \0 " ; break ; case BP_ANCHOR_PROTO_ICQ : return " \0 " ; break ; case BP_ANCHOR_PROTO_IRQ : return " \0 " ; break ; case BP_ANCHOR_PROTO_MAILBOX : return " \0 " ; break ; case BP_ANCHOR_PROTO_MAILTO : return " \0 " ; break ; case BP_ANCHOR_PROTO_MD5 : return " \0 " ; break ; case BP_ANCHOR_PROTO_MID : return " \0 " ; break ; case BP_ANCHOR_PROTO_MIDI : return " \0 " ; break ; case BP_ANCHOR_PROTO_MOCHA : return " \0 " ; break ; case BP_ANCHOR_PROTO_MODEM : return " \0 " ; break ; case BP_ANCHOR_PROTO_NEWS : return " \0 " ; break ; case BP_ANCHOR_PROTO_NFS : return " \0 " ; break ; case BP_ANCHOR_PROTO_NNTP : return " \0 " ; break ; case BP_ANCHOR_PROTO_OPAQUELOCKTOKEN : return " \0 " ; break ; case BP_ANCHOR_PROTO_PHONE : return " \0 " ; break ; case BP_ANCHOR_PROTO_POP : return " \0 " ; break ; case BP_ANCHOR_PROTO_POP3 : return " \0 " ; break ; case BP_ANCHOR_PROTO_PRINTER : return " \0 " ; break ; case BP_ANCHOR_PROTO_PROSPERO : return " \0 " ; break ; case BP_ANCHOR_PROTO_RES : return " \0 " ; break ; case BP_ANCHOR_PROTO_RSTP : return " \0 " ; break ; case BP_ANCHOR_PROTO_RVP : return " \0 " ; break ; case BP_ANCHOR_PROTO_RWHOIS : return " \0 " ; break ; case BP_ANCHOR_PROTO_RX : return " \0 " ; break ; case BP_ANCHOR_PROTO_SDP : return " \0 " ; break ; case BP_ANCHOR_PROTO_SERVICE : return " \0 " ; break ; case BP_ANCHOR_PROTO_SIP : return " \0 " ; break ; case BP_ANCHOR_PROTO_SMB : return " \0 " ; break ; case BP_ANCHOR_PROTO_SNEWS : return " \0 " ; break ; case BP_ANCHOR_PROTO_SOAP_BEEP : return " \0 " ; break ; case BP_ANCHOR_PROTO_SOAP_BEEPS : return " \0 " ; break ; case BP_ANCHOR_PROTO_T120 : return " \0 " ; break ; case BP_ANCHOR_PROTO_TCP : return " \0 " ; break ; case BP_ANCHOR_PROTO_TEL : return " \0 " ; break ; case BP_ANCHOR_PROTO_TELNET : return " \0 " ; break ; case BP_ANCHOR_PROTO_TIP : return " \0 " ; break ; case BP_ANCHOR_PROTO_TN3270 : return " \0 " ; break ; case BP_ANCHOR_PROTO_TV : return " \0 " ; break ; case BP_ANCHOR_PROTO_URN : return " \0 " ; break ; case BP_ANCHOR_PROTO_UUID : return " \0 " ; break ; case BP_ANCHOR_PROTO_VEMMI : return " \0 " ; break ; case BP_ANCHOR_PROTO_VIDEOTEX : return " \0 " ; break ; case BP_ANCHOR_PROTO_VIEW_SOURCE : return " \0 " ; break ; case BP_ANCHOR_PROTO_WAIS : return " \0 " ; break ; case BP_ANCHOR_PROTO_WHODP : return " \0 " ; break ; case BP_ANCHOR_PROTO_WHOIS : return " \0 " ; break ; case BP_ANCHOR_PROTO_Z39_50R : return " \0 " ; break ; case BP_ANCHOR_PROTO_Z39_50S : return " \0 " ; break ; case BP_ANCHOR_PROTO_UNKNOWN : break ; } return NULL ; }
Returns a NULL terminated c style character string based off a BP anchor
protocol value.
Returns a NULL terminated c style character string based off a BP anchor protocol value .