.

Showing posts with label string. Show all posts
Showing posts with label string. Show all posts

Monday, June 4, 2012

[C#] String Replacer

          Hello, Reader ^^! Back again with source code. This time is String Replacer which is made using C# programming language. This shows how to do a string replace. Mainly, you can use (String object).Replace to replace the string. In this one, I also added save and load feature so it easier to read very long string. Okay, that's all I can say. Thank you for reading ^^!











[Ruby] String Replacer

          Hello, Reader ^^! Back again with source code. This time is String Replacer which is made using Ruby programming language. This shows how to do a string replace. Mainly, you can use gsub to replace the string. In this one, I also added save and load feature so it easier to read very long string. Okay, that's all I can say. Thank you for reading ^^!










Tuesday, March 13, 2012

[Ruby] Palindrome Check

          Hello, Reader ^^! Back again with source code. This time is a simple Palindrome Check. The only needed is using the built-in reverse function. Then compare it with the original string. If equal, then it is palindrome. Example, a string "pizza azzip" is a palindrome. One more thing, in this example, it is case-sensitive. Okay, that's all I can say. Thank you for reading ^^!







Saturday, March 10, 2012

[C++] String To Binary String

          Hello, Reader ^^! Back again with source code. This time is a simple String To Binary String. This function can convert string into binary string. I only need to use itoa and some 0 padding to do it. Now, let's me give a demonstration. If you put "I want a pizza!" string, it will be converted into "010010010010000001110111011000010110111001110100001000000110000100100000011100000110100101111010011110100110000100100001". Oh, I made this one since it is hard to find any example to convert a string into binary string >.< which pushed me into making this example :3. Okay, that's all I can say. Thank you for reading ^^!