gpt4 book ai didi

org.sweble.wikitext.parser.nodes.WtXmlCharRef.getCodePoint()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 15:17:05 25 4
gpt4 key购买 nike

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

WtXmlCharRef.getCodePoint介绍

暂无

代码示例

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

protected void visit(WtXmlCharRef node)
{
  b.append(Character.toChars(node.getCodePoint()));
}

代码示例来源:origin: sweble/sweble-wikitext

protected void visit(WtXmlCharRef node)
{
  b.append(Character.toChars(node.getCodePoint()));
}

代码示例来源:origin: marcusklang/wikiforia

public void visit(WtXmlCharRef cr)
{
  if(!isInsideFilteredSection()) {
    sb.append(Character.toChars(cr.getCodePoint()));
  }
}

代码示例来源:origin: dkpro/dkpro-jwpl

public void visit(WtXmlCharRef cr)
{
  write(Character.toChars(cr.getCodePoint()));
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlCharRef n)
{
  pf("&#%d;", n.getCodePoint());
}

代码示例来源:origin: org.sweble.wikitext/swc-engine

public void visit(WtXmlCharRef n)
{
  pf("&#%d;", n.getCodePoint());
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlCharRef cr)
{
  write(Character.toChars(cr.getCodePoint()));
}

代码示例来源:origin: kermitt2/entity-fishing

public void visit(WtXmlCharRef cr) {
  write(Character.toChars(cr.getCodePoint()));
}

代码示例来源:origin: marcusklang/wikiforia

public void visit(WtXmlCharRef cr)
{
  if(!isInsideFilteredSection()) {
    sb.append(Character.toChars(cr.getCodePoint()));
  }
}

代码示例来源:origin: org.sweble.wikitext/swc-engine

public void visit(WtXmlCharRef n)
{
  p.indentAtBol();
  pf("&#%d;", n.getCodePoint());
}

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

@Override
protected Object getValue(int index)
{
  switch (index - getSuperPropertyCount())
  {
    case 0:
      return WtXmlCharRef.this.getCodePoint();
    default:
      return super.getValue(index);
  }
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlCharRef n)
{
  p.indentAtBol();
  pf("&#%d;", n.getCodePoint());
}

代码示例来源:origin: sweble/sweble-wikitext

@Override
protected Object getValue(int index)
{
  switch (index - getSuperPropertyCount())
  {
    case 0:
      return WtXmlCharRef.this.getCodePoint();
    default:
      return super.getValue(index);
  }
}

代码示例来源:origin: org.sweble.wom3/sweble-wom3-swc-adapter

private void convertCharRef(WtXmlCharRef n)
{
  int codePoint = n.getCodePoint();
  if (!XmlGrammar.isChar(codePoint))
  {
    // The & will be escaped and therefore the whole thing will be 
    // rendered as plain text, indicating that something unrepresentable 
    // was processed here.
    appendInconvertible(n, false);
  }
  else
  {
    appendText(new String(Character.toChars(codePoint)));
  }
}

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

public void visit(WtXmlCharRef n)
{
  p.print("&#");
  p.print(String.valueOf(n.getCodePoint()));
  p.print(';');
}

代码示例来源:origin: sweble/sweble-wikitext

public void visit(WtXmlCharRef n)
{
  p.print("&#");
  p.print(String.valueOf(n.getCodePoint()));
  p.print(';');
}

代码示例来源:origin: sweble/sweble-wikitext

private void convertCharRef(WtXmlCharRef n)
{
  int codePoint = n.getCodePoint();
  if (!XmlGrammar.isChar(codePoint))
  {
    // The & will be escaped and therefore the whole thing will be 
    // rendered as plain text, indicating that something unrepresentable 
    // was processed here.
    appendInconvertible(n, false);
  }
  else
  {
    appendText(new String(Character.toChars(codePoint)));
  }
}

代码示例来源:origin: sweble/sweble-wikitext

@Override
  protected Object setValue(int index, Object value)
  {
    switch (index - getSuperPropertyCount())
    {
      case 0:
      {
        int old = WtXmlCharRef.this.getCodePoint();
        WtXmlCharRef.this.setCodePoint((Integer) value);
        return old;
      }
      default:
        return super.setValue(index, value);
    }
  }
};

代码示例来源:origin: org.sweble.wikitext/swc-parser-lazy

@Override
  protected Object setValue(int index, Object value)
  {
    switch (index - getSuperPropertyCount())
    {
      case 0:
      {
        int old = WtXmlCharRef.this.getCodePoint();
        WtXmlCharRef.this.setCodePoint((Integer) value);
        return old;
      }
      default:
        return super.setValue(index, value);
    }
  }
};

代码示例来源:origin: org.sweble.wom3/sweble-wom3-swc-adapter

public Wom3ElementNode visit(WtXmlCharRef n)
{
  if (addSubst)
  {
    Wom3Subst subst = (Wom3Subst) genPushWom("subst");
    {
      Wom3Repl repl = (Wom3Repl) genPushWom("repl");
      {
        convertCharRef(n);
      }
      popAppend(subst, repl);
      Wom3For for_ = (Wom3For) genPushWom("for");
      {
        Wom3ElementNode charRef = genPushMwwNotYetImplemented("xml-char-ref");
        {
          charRef.setAttribute("code", String.valueOf(n.getCodePoint()));
          appendRtd(charRef, n, 0);
        }
        popAppend(for_, charRef);
      }
      popAppend(subst, for_);
    }
    return pop(subst);
  }
  else
  {
    convertCharRef(n);
    return null;
  }
}

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