I Really Do Compare Strings

by Michael S. Kaplan, published on 2007/06/04 00:01 -04:00, original URI: http://blogs.msdn.com/b/michkap/archive/2007/06/03/3071585.aspx


It may not be #1 for the list of words I never expected to here Erik say. But if you had asked me I would have put it in the top five....

As I was passing by his office in the scooter, he said "Wait, Michael. You have to hear this song from Barry Manilow."

The song? It's from the remastered This One's for You, and the name of the song is I Really Do Write The Songs.

It was very cute, and funny given the irony surrounding the fact that his big hit I Write The Songs was not written by him and was not actually about a songwriter anyway. :-)

I listened the song all the way through, since I was kind of hoping he would talk about the bridge and such -- you know, more into the musical side of things. He didn't, but it was okay. It isn't like I bought the album of anything, so my right to ask for things from the man is decidedly limited....

You can see the album on Amazon and even listen to a bit of the track if you like here.

I even wrote up my own version of the lyrics, entitled I Really Do Compare Strings for your entertainment. Probably not too useful if you have never heard the song. But perhaps a little funny....

You start with Unicode,
That's the part that lets them see their language as they expect to see it shown.
You gotta try a resource load --
Docs are good, and tools are fine, but the blog's the best way to make it sure it isn't all blown. :-)
Make it sound like it's old hat
GetACP, GetDateFormat
But you must use Unicode
Get to the center of the code

Yes that's collation! An ovation!
It's always a safe bet to remember the alphabet.
You see, sometimes I really do compare strings!

And the project must be nursed
To make sure they keep the StrIsIntlEqual calls at bay
It is tempting to curse,
When it looks all wrong, or the callers call all "A" functions day after day.
Then normalize, format a date,
And don't forget you must collate.
It will help to use Unicode
Get to the center of the code

Yes that's collation! An ovation!
It's always a safe bet to remember the alphabet.
You see, sometimes I really do compare strings.

If you call the function twice the results will be the same.
If you call the function twice the results will be the same.
Call it twice, it's the same, call it twice, it's the same. Oh....

Love collation! No one's above collation!
It's always a safe bet to remember the alphabet.
You see sometimes I really do compare
(oh what the hell)
I CompareString!

:-)

 

This post brought to you by (U+20a2, a.k.a. CRUZEIRO SIGN)


Anonymous on 4 Jun 2007 9:18 AM:

Cruzeiro sign... Mostly useless nowadays, since we've moved to Real for quite some time already.


Please consider a donation to keep this archive running, maintained and free of advertising.
Donate €20 or more to receive an offline copy of the whole archive including all images.

referenced by

2008/10/02 Not the monks... or The Monks... or The Monks... or The Mumps...

go to newer or older post, or back to index or month or day