gpt4 book ai didi

com.ximpleware.extended.xpath.Yylex.yytext()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 11:09:31 26 4
gpt4 key购买 nike

本文整理了Java中com.ximpleware.extended.xpath.Yylex.yytext()方法的一些代码示例,展示了Yylex.yytext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yylex.yytext()方法的具体详情如下:
包路径:com.ximpleware.extended.xpath.Yylex
类名称:Yylex
方法名:yytext

Yylex.yytext介绍

[英]Returns the text matched by the current regular expression.
[中]返回与当前正则表达式匹配的文本。

代码示例

代码示例来源:origin: com.ximpleware/vtd-xml

case 28: 
 { isName = 0;
    len = yytext().length();
    name = new NameType();
            if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
      throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position 0");
      if (!XMLChar.isNCNameChar(yytext().charAt(i)))
        throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position "+i);
    name.prefix = yytext().substring(0,len-2);
    name.localname = "*";
case 3: 
 { isName = 0;
    number = new Double(yytext());
case 27: 
 { isName = 0;
    len = yytext().length();
    literal = yytext().substring(1, len-1);
    return sym(LITERAL,literal);
    name.qname = new String(yytext());
    if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
      throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position 0");
        throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position "+i);
      if (name.qname.charAt(i)==':'){

代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml

case 28: 
 { isName = 0;
    len = yytext().length();
    name = new NameType();
            if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
      throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position 0");
      if (!XMLChar.isNCNameChar(yytext().charAt(i)))
        throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position "+i);
    name.prefix = yytext().substring(0,len-2);
    name.localname = "*";
case 3: 
 { isName = 0;
    number = new Double(yytext());
case 27: 
 { isName = 0;
    len = yytext().length();
    literal = yytext().substring(1, len-1);
    return sym(LITERAL,literal);
    name.qname = new String(yytext());
    if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
      throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position 0");
        throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position "+i);
      if (name.qname.charAt(i)==':'){

代码示例来源:origin: dryade/vtd-xml

case 28: 
 { isName = 0;
    len = yytext().length();
    name = new NameType();
            if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
      throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position 0");
      if (!XMLChar.isNCNameChar(yytext().charAt(i)))
        throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position "+i);
    name.prefix = yytext().substring(0,len-2);
    name.localname = "*";
case 3: 
 { isName = 0;
    number = new Double(yytext());
case 27: 
 { isName = 0;
    len = yytext().length();
    literal = yytext().substring(1, len-1);
    return sym(LITERAL,literal);
    name.qname = new String(yytext());
    if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
      throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position 0");
        throw new XPathParseExceptionHuge("Invalid char in name token:  "+yytext()+ "@position "+i);
      if (name.qname.charAt(i)==':'){

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com