trim, ltrim, and rtrim in C
8
Nifty way to swap two integers in C (C++) without using a temporary variable. Uses one line of code (3 assignments).
-5
Parsing a String for Numbe
12
Using the Termios library, we can have the user enter a character on the keyboard, without it being displayed on the screen.
2
LCase Functio
7
I use this function when passing an array to a function being called from setTimeout();
12
If you have ever written a website or java application where people paste stuff in from Word, you are likely to have hit the problem of Word using high ascii chars for "open quotes", "close quotes", reg symbol, etc...
This java class (with a single static method) can replace the most prevalent of these with normal ascii values
Hope it helps someone...
This java class (with a single static method) can replace the most prevalent of these with normal ascii values
Hope it helps someone...
9
Gets the rightmost substring, of the specified length, from a String object.
8
svachon
Gets a regular expression that'll search for any regexp pattern specified in the parameters.
9
I was coding a project that used arrays when the lack of a standard foreach in C/C++ got to me. So, I coded this little function to help me. It applies a function that returns int to each element of the array.
7
Turns any string backwards. If you input "Test" it gives out "tseT". Hope it's useful.
The snippet shows how to use it.
The snippet shows how to use it.









