Namespace: Consultingwerk.Studio.Proparse.SingleLineCommentParser
Class 
SingleLineCommentParser Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:SingleLineCommentParser
Purpose:Tests if a source code file uses the single line comment
As this is not supported in OpenEdge 11.6 and earlier
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Feb 01 07:12:53 CET 2020



Top Method Summary
Options Name Purpose
# LOGICAL FileContainsSingleLineComment (character) Tests if the given file contains the // comment
# LOGICAL FileContainsSlashSlash (character) Tests if the given file contains the // comment
+ LOGICAL HasSingleLineComment (character) Tests if the given file contains the // comment


Method Detail
Top

PROTECTED LOGICAL FileContainsSingleLineComment (character)

Purpose: Tests if the given file contains the // comment
Notes: First phase, loads the file into a LONGCHAR and uses the INDEX function

Parameters:
pcFileName CHARACTER
The name of the file to test
Returns LOGICAL
Logical value indicating if the given file contains the // comment
Top

PROTECTED LOGICAL FileContainsSlashSlash (character)

Purpose: Tests if the given file contains the // comment
Notes: First phase, loads the file into a LONGCHAR and uses the INDEX function

Parameters:
pcFileName CHARACTER
The name of the file to test
Returns LOGICAL
Logical value indicating if the given file contains the // comment
Top

PUBLIC LOGICAL HasSingleLineComment (character)

Purpose: Tests if the given file contains the // comment
Notes:

Parameters:
pcFileName CHARACTER
The name of the file to test
Returns LOGICAL
Logical value indicating if the given file contains the // comment


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:32:59