HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file data.IntUtil by barry
expand copy to clipboardexpand
/* {"description" : "Convert between integers and strings."} */

interface IntUtil{
	/* {"@description" : "Convert an integer to a string.", "@deprecated" : true, "@deprecatedBy" : "makeString", "@deprecatedOn" : "2020/01/01"} */
	char[] intToString(int i)
	
	/* {"@description" : "Convert a string to an integer."} */
	int intFromString(char s[])
	
	/* {"@description" : "Convert an integer to a string."} */
	char[] makeString(int i)

	/* {"@description" : "Convert a native integer to Dana-representation form (e.g. for byte ordering)."} */
	int htod(int i)

	/* {"@description" : "Convert a Dana integer to the native host-representation form (e.g. for byte ordering)."} */
	int dtoh(int i)
	
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n data.IntUtil -m "reason for update" -u yourUsername
Version 2 (this version) by barry
Notes for this version: Adds htod() and dtoh(), moved from dana.x() calls.
Version 1 by barry