close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#203 closed defect (fixed)

ERROR in ToName functions

Reported by: César Pérez Álvarez Owned by: danirus
Priority: lowest Milestone:
Component: Text Version: head
Severity: trivial Keywords:
Cc:

Description

This functions returns the Text argument changing the ilegal letters for variables
identifier purposes, to underlines "_". But if we put the character ' (ASCII(39)), we
obtain the same char. and we could not use it like identifier.

Change History (3)

comment:1 Changed 19 years ago by danirus

Which functions are you talking about?

comment:2 Changed 19 years ago by danirus

Resolution: fixed
Status: newclosed

Bug fixed. Some examples:

Text t1 = ToName("1id"); --> "_1id"
Text t2 = ToName("'id");
--> "_'id"
Text t3 = ToName("@id"); --> "_id"
Text t4 = ToName("multiple word id");
--> "multiple_word_id"

The backward compatibility has been broken (example 1 and 2).

comment:3 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000203
Note: See TracTickets for help on using tickets.