Formal languages

Metric , standard unit conversion (simple string operations) in c

The following C project contains the C source code and C examples used for metric , standard unit conversion (simple string operations). It converts the following units "millimeter" ,"centimeter","kilometer","meter","yard" ,"inch","foot","mile" "gram","kilogram","milligram","ounce","pound","stone","tonne","grain" And "litre","millilitre","pint","fluidounce","UKfluidounce","gallon"

Tchar string class in c

The following C project contains the C source code and C examples used for tchar string class. my Code creates a TCHAR string object with a full suite of operator overloads and member functions such as mid,left,right,and findStr. The previous add functionality akin to the most common vb character handling functions.

String life in java

The following java project contains the java source code and java examples used for string life. A simple cellular automaton type program that mainipulates a String based on its characters. Provides an example of how patterns can arise out of (psuedo)randomness.

String spacer in java

The following java project contains the java source code and java examples used for string spacer. This program simply accepts a string and displays the string with spaces. example: Enter a string: angelito Output: a n g e l i t o

Asort a pedestrian alphanumeric string sorter in matlab

The following Matlab project contains the source code and Matlab examples used for asort a pedestrian alphanumeric string sorter. ASORT sorts an array or cell array of alphanumeric strings numerically rather than in ascii dictionary order strings are divided into three different categories, which are returned in separate cells - numerically sorted strings that contain only one readable number - ascii dictionary order sorted strings that contain more than one readable or invalid numbers - ascii dictionary order sorted strings that contain no numbers see > help asort

Int2strn in matlab

The following Matlab project contains the source code and Matlab examples used for int2strn. int2strn(n,k,p) converts the number n to a string, expressing n in integer format if it can be written using k digits or less, and otherwise in exponential format with precision p.

String letter counter function in matlab

The following Matlab project contains the source code and Matlab examples used for string letter counter function. Statement: strLetterCounter('string') ....where, 'string' is an input string containing alphabet or numbers. Ex: string='aaaaaaaabbbbbbccd' Statement: strLetterCounter(string) Output: '8a,6b,2c,1d' Note: This function is different from the Matlab function called 'unique' because it keeps the order in which letters occur in the string.

Collapses a long comma separated string using a counter for repeated sub-strings in matlab

The following Matlab project contains the source code and Matlab examples used for collapses a long comma separated string using a counter for repeated sub-strings . Example 1- Input string = 'abc,abc,abc,dcf,dcf,ef'. output string ='3abc,2dcf,1ef' Example 2- Input string = 'xyzr,abdc,abdc,haha,haha'. output string ='1xyzr,2abdc,2haha' Explanation: This function collapses a comma separated long string, containing sub-strings, into a possibly smaller string by replacing repeated sub-strings by counts of repetitions of substrings.

Pages

Subscribe to RSS - Formal languages