Package org.eclipse.php.internal.core.util.text

Examples of org.eclipse.php.internal.core.util.text.TextSequence.charAt()


    TextSequence statementText = getStatementText();
    int functionEnd = getFunctionEnd();

    // are we inside parameters part in function declaration statement
    for (int i = statementText.length() - 1; i >= functionEnd; i--) {
      if (statementText.charAt(i) == '(') {
        int j = statementText.length() - 1;
        for (; j > i; j--) {
          char charAt = statementText.charAt(j);
          char charAtBefore = 0;
          if (j > i + 1) {
View Full Code Here


    // are we inside parameters part in function declaration statement
    for (int i = statementText.length() - 1; i >= functionEnd; i--) {
      if (statementText.charAt(i) == '(') {
        int j = statementText.length() - 1;
        for (; j > i; j--) {
          char charAt = statementText.charAt(j);
          char charAtBefore = 0;
          if (j > i + 1) {
            charAtBefore = statementText.charAt(j);
          }
          if (charAt == ':' && charAtBefore == ':') {
View Full Code Here

        int j = statementText.length() - 1;
        for (; j > i; j--) {
          char charAt = statementText.charAt(j);
          char charAtBefore = 0;
          if (j > i + 1) {
            charAtBefore = statementText.charAt(j);
          }
          if (charAt == ':' && charAtBefore == ':') {
            return charAt;
          }
        }
View Full Code Here

          }
          if (charAt == ':' && charAtBefore == ':') {
            return charAt;
          }
        }
        return statementText.charAt(i);
      }
    }
    return 0;
  }
}
View Full Code Here

    TextSequence statementText = getStatementText();
    int functionEnd = getFunctionEnd();

    // are we inside parameters part in function declaration statement
    for (int i = statementText.length() - 1; i >= functionEnd; i--) {
      if (statementText.charAt(i) == '(') {
        int j = statementText.length() - 1;
        for (; j > i; j--) {
          char charAt = statementText.charAt(j);
          char charAtBefore = 0;
          if (j > i + 1) {
View Full Code Here

    // are we inside parameters part in function declaration statement
    for (int i = statementText.length() - 1; i >= functionEnd; i--) {
      if (statementText.charAt(i) == '(') {
        int j = statementText.length() - 1;
        for (; j > i; j--) {
          char charAt = statementText.charAt(j);
          char charAtBefore = 0;
          if (j > i + 1) {
            charAtBefore = statementText.charAt(j);
          }
          if (charAt == '$' || charAt == '=' || charAt == ','
View Full Code Here

        int j = statementText.length() - 1;
        for (; j > i; j--) {
          char charAt = statementText.charAt(j);
          char charAtBefore = 0;
          if (j > i + 1) {
            charAtBefore = statementText.charAt(j);
          }
          if (charAt == '$' || charAt == '=' || charAt == ','
              || (charAt == ':' && charAtBefore == ':')) {
            return charAt;
          }
View Full Code Here

          if (charAt == '$' || charAt == '=' || charAt == ','
              || (charAt == ':' && charAtBefore == ':')) {
            return charAt;
          }
        }
        return statementText.charAt(i);
      }
    }
    return 0;
  }
}
View Full Code Here

      tagStart = PHPTextSequenceUtilities.readIdentifierStartIndex(
          getPhpVersion(), getStatementText(), tagEnd, true);

      tagName = statementText.subSequence(tagStart, tagEnd).toString();

      if (tagStart > 0 && statementText.charAt(tagStart - 1) == '@') {
        found = true;
      } else if (isPHPTag(tagName)) {
        found = true;
      }
View Full Code Here

        hasQuotes = true;

        endPosition = PHPTextSequenceUtilities.readBackwardSpaces(
            statementText, startPosition);
        if (endPosition == 0
            || (statementText.charAt(endPosition - 1) != '\"' && statementText
                .charAt(endPosition - 1) != '\'')) {
          return false;
        }
        startPosition = endPosition - 1;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.