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
Purpose: Tests if the given file contains the // comment
Notes: First phase, loads the file into a LONGCHAR and uses the INDEX function



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-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:15:56