Feature #27

Adding SET conversion to the module Strings

Added by J. Templ almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:01/26/2015
Priority:NormalDue date:
Assignee:J. Templ% Done:

100%

Category:-
Target version:1.7
Forum topic:

Description

Conversion between Component Pascal SET constants and ARRAY OF CHAR is missing from the module Strings.
A proposal exists in CPC 1.7.
The specification needs to be added to System/Docu/Strings.

Refers to CPC 1.7 rc5 change list number 30.

Associated revisions

Revision d560f92a
Added by J. Templ almost 4 years ago

Adding SET conversion to the module Strings. Refs: #27.
StringToSet and SetToString as proposed in CPC 1.7 rc5.

Signed-off-by: Josef Templ <>

Revision 1b61f127
Added by J. Templ almost 4 years ago

Added specification of set conversions. Refs: #27.
Switched the usage of res = 1 and res = 2 in order to follow the conventions used in StringToInt and StringToReal.

Signed-off-by: Josef Templ <>

Revision 765ced26
Added by J. Templ almost 4 years ago

SetToString simplified as suggested (partly) by luowy. Refs: #27.

Signed-off-by: Josef Templ <>

Revision 5de4e41a
Added by J. Templ almost 4 years ago

StringToSet simplified as suggested (partly) by luowy. Refs: #27.
Uses a top-down parser approach now instead of the more difficult state machine.

Signed-off-by: Josef Templ <>

Revision fe8d8ec4
Added by J. Templ almost 4 years ago

SetToString taken from TextMappers.Formatter.WriteSet. Refs: #27.
This version is more efficient for small sets because it terminates at the highest set member, not at MAX.
Docu improved.
TextMappers.Formatter.WriteSet uses Strings.SetToString.

Signed-off-by: Josef Templ <>

Revision bb3acb18
Added by J. Templ almost 4 years ago

Optimization in SetToString as proposed by Robert Refs: #27.

Signed-off-by: Josef Templ <>

Revision 2a8d9381
Added by J. Templ almost 4 years ago

Merge pull request #13 from BlackBoxCenter/issue-#27

Refs: #27.

History

#1 Updated by J. Templ almost 4 years ago

  • Tracker changed from Bug to Feature

#2 Updated by J. Templ almost 4 years ago

  • Description updated (diff)

#3 Updated by J. Templ almost 4 years ago

  • Description updated (diff)

#4 Updated by J. Templ almost 4 years ago

  • Status changed from New to Closed
  • Assignee changed from I. Denisov to J. Templ
  • % Done changed from 0 to 100

Also available in: Atom PDF