UNPKG

yogeshs-utilities

Version:
40 lines (39 loc) 2.39 kB
import { StatementMaster } from "../../models"; export default class CobolHelpers { static prepareCobolLineDetails: (allLines: string[]) => Array<StatementMaster>; static prepareJclSameLength: (allLines: Array<StatementMaster>, maxLen?: number, upto?: number) => StatementMaster[]; static prepareSameLength: (allLines: Array<StatementMaster>) => Array<StatementMaster>; static removeCharacter: (allLines: Array<StatementMaster>, startPosition: number, length: number) => Array<StatementMaster>; static removeStartCharacter: (allLines: StatementMaster[], ...characters: string[]) => StatementMaster[]; static removeAllCommentedLines(allLines: StatementMaster[], comments: string[]): StatementMaster[]; static removeSpacesBetweenWords: (allLines: StatementMaster[], regex?: RegExp) => StatementMaster[]; static combineAllBrokenLines: (lineDetails: StatementMaster[], lineBreakElement: string, keepOrRemove?: boolean) => StatementMaster[]; static getStepsData: (allLines: StatementMaster[]) => Array<{ step: string; counter: number; lines: string[]; }>; static removeComments: (sourceCode: string[], pattern?: string | RegExp) => string; static extractLineComments: (sourceCode: string[], pattern?: string | RegExp) => { index: number; comment: string; }[]; static removeEmptyLines: (allLines: string[]) => string[]; static getDsnDataSets: (allLines: Array<StatementMaster>, options: { fid: string | any; pid: string | any; }) => Array<any>; static concatBmsInitialValues: (allLines: Array<StatementMaster>) => StatementMaster[]; static processBmsMapControls(allLines: Array<StatementMaster>): Array<{ map: string; mapSet: string; bmsMapControls: []; }>; static splitLinesAfterDotForCobol(allLines: Array<StatementMaster>): Array<StatementMaster>; static getCopyStatementsFromWorkingStorageSection(allLines: Array<StatementMaster>): Array<StatementMaster>; static splitCopyAndReplacingStatement(allLines: Array<StatementMaster>): Array<StatementMaster>; static extractCursorsFromExecSql(allExecSql: StatementMaster[]): StatementMaster[]; static removeDotFromMethodName: (methodList: string[]) => string[]; static extractKeyword: (input: string) => string; static isInSingleQuotes: (input: string) => boolean; }