WL#3716: WEIGHT_STRING function

Affects: Server-5.6   —   Status: Complete

Allow a function named WEIGHT_STRING(),
which takes a string and returns the
collation weights.

This task was formerly part of WL#896
Primary, Secondary and Tertiary Sorts.

The function is useful for testing the results from
WL#3664 strnxfrm() changes for prefix keys and NOPAD.

-----

DOCS NOTE (Email from Bar, 2007-10-08): 

> Also, I have a suggestion for 5.2 manual, for the same page,
> after the last paragraph telling about "sort value":

> http://dev.mysql.com/doc/refman/5.2/en/case-sensitivity.html

> Please put a link to the WEIGHT_STRING article...

-----

[ Note added by Peter Gulutzan 2009-10-18 ]

Code is complete. But priority is lower than it was before.
So we can delay putting this in a production release.
A good time would be: along with WL#896 "Primary, Secondary
and Tertiary Sorts". This decision follows Alexander Barkov's
email today "Re: WL#3716 WEIGHT_STRING function".