AbstractExpression.ts 544 B

1234567891011121314151617181920
  1. export class AbstractExpression {
  2. //constructor() {
  3. //
  4. //}
  5. protected static isStringInStringList(stringList: Array<string>, inputString: string): boolean {
  6. for (let idx: number = 0, len: number = stringList.length; idx < len; ++idx) {
  7. const s: string = stringList[idx];
  8. if (inputString.toLowerCase() === s.toLowerCase().trim()) {
  9. return true;
  10. }
  11. }
  12. return false;
  13. }
  14. }
  15. export enum PlacementEnum {
  16. Above = 0,
  17. Below = 1,
  18. NotYetDefined = 2
  19. }