Extend x_matrix() to matrices of strings
@sgougeon)
Reported by Samuel GOUGEON (BUG DESCRIPTION:
----------------
x_matrix() can be used only with decimal numbers. It could be extended to edit a matrix of strings.
The following features are proposed:
* For the initial matrix: if sum(max(length(M),"r"))> row_max_length, a warning is displayed
* The first line is devoted to Columns numbering
* Lines are numbered with a heading "##:: " strings
* "," is used as columns separator. No alternative is proposed.
Strings embedding "," are quoted as in "As expected, it will be more handy"
* Edited columns are left-justified
* In the returned matrix, trailing blanks (coming from the left justification) are trimmed.
The help pages will be updated.
ERROR LOG:
----------
-->t = ["Hello" "Allô" ; "Hola" "Hej"]
t =
!Hello Allô !
!Hola Hej !
-->x_matrix("My text matrix:",t)
!--error 10000
x_matrix: Wrong type for input argument #2: A real expected.
at line 9 of function x_matrix called by :
x_matrix("My text matrix:",t)
HOW TO REPRODUCE THE BUG:
-------------------------
t = ["Hello" "Allô" ; "Hola" "Hej"]
x_matrix("My text matrix:",t)
OTHER INFORMATION:
------------------
See also the bug 10922