Posts Tagged: string

Java Strings vs Ropes

Posted by & filed under , , , .

Recently, in my news feeds I stumbled across this implementation of Ropes in Java (http://ahmadsoft.org/ropes/) and it captured my attention right away as it boasts a faster (better?) alternative for dealing with characters in Java. Unfortunately the website doesn’t offer any comparative information regarding how much faster a Rope implementation is than the standard String […]

PHP Utility to Convert Multi-line MySQL Strings

Posted by & filed under , , .

This is a very small “project” (I use quotes since the term “project” seems a bit generous here, however, it is treated as a project on GitHub!), which I found to be useful when dealing with generating MySQL scripts to insert or update text which spans over multiple lines. In most such cases, I would […]

Creating StringBuilder in Java

Posted by & filed under , , .

I wrote in my previous post about StringBuilder’s in Java, and I felt I should provide some measurements around the whole discussion. So I put together some quick and dirty code which is good enough for a comparison of the 2 ways of creating a StringBuilder — bear in mind I said “comparison”, as such […]