ifield-area ::= %5B.%41.%3A *WSP tex-text-ifield %5D<p>
<tt>[A:..]</tt>
763130
Rule IfieldArea() {
		return Sequence(String("[A:"),
				ZeroOrMore(WSP()).suppressNode(),
				TexTextIfield(),
				String("]"))
			.label(IfieldArea);
	}
864890
private static int parseField(String field, Input s, Character delim, int minLen, int maxLen, boolean strict) {
    int startIndex = s.index;
    int result = parseInt(s);
    if (startIndex == s.index) throw new DateFormatException("missing value for field '" + field + "'", s.str, startIndex);
    if (strict) {
      int len = s.index - startIndex;
      if (len < minLen) throw new DateFormatException("field '" + field + "' must be at least " + minLen + " digits wide", s.str, startIndex);
      if (maxLen > 0 && len > maxLen) throw new DateFormatException("field '" + field + "' must be no more than " + minLen + " digits wide", s.str, startIndex);
    }
    if (delim != null) {
      if (s.index >= s.len) throw new DateFormatException("unexpected end of input", s.str, s.index);
      if (strict && s.getChar() != delim.charValue()) throw new DateFormatException("unexpected character, expected '" + delim + "'", s.str, s.index);
      s.index++;
    }
    return result;
  }
452126
def text_input(*args, **kwargs):
    '''
    
    '''
    text_input = wtforms.TextAreaField(*args, **kwargs)
    text_input.input_type = 'text'
    return text_input
1005867
protected String getText(Area node)
    {
        String s = node.getText().trim();
        //if (s.contains("\""))
        //    System.out.println("jo!");
        s = s.replaceAll("^[\\\"\\p{Pi}]+", "");
        s = s.replaceAll("[\\\"\\p{Pf}]+$", "");
        return s;
    }
606946
public static LimitedTextArea newTextArea (String text, int width, int height, int maxLength)
    {
        LimitedTextArea area = new LimitedTextArea(maxLength, width, height);
        if (text != null) {
            area.setText(text);
        }
        return area;
    }
727400
Rule IfieldLength() {
		return Sequence(String("[L:"),
				ZeroOrMore(WSP()).suppressNode(),
				NoteLengthStrict(),
				String("]"))
			.label(IfieldLength);
	}
1339299
public boolean writeTextField(BaseField textField, String strBaseClass, String strMethodName, String strMethodInterface, String strClassName)
    {
        if (textField.getString().length() == 0)
            return false;
        String beforeMethodCode;    //, currentString;
        beforeMethodCode = textField.getString();
        int inher = beforeMethodCode.indexOf("super;");
        if (inher != -1)
        {
            String strSuper = "super";
            if (strClassName != strMethodName)
                strSuper = "super." + strMethodName;
            strMethodInterface = this.getMethodVariables(strMethodInterface);
            beforeMethodCode = beforeMethodCode.substring(0, inher) + strSuper + "(" + strMethodInterface + ");" + beforeMethodCode.substring(inher + 6, beforeMethodCode.length());
        }
        m_StreamOut.writeit(beforeMethodCode);
        m_StreamOut.writeit("\n");
        return (inher != -1);
    }
509192
def text(name, options = {})
      field name, CharField.new(options.merge(widget: Widgets::Textarea.new))
    end
724423
Rule IfieldNotes() {
		return Sequence(String("[N:"),
				ZeroOrMore(WSP()).suppressNode(),
				TexTextIfield(),
				String("]"))
			.label(IfieldNotes);
	}
455905
function forms_html($form, $field)
	{
		$value = isset($form->values[$field['name']]) ?
			$form->values[$field['name']] :
			(isset($field['value'])?$field['value']:'');
		$preset = isset($field['preset']) ? $field['preset'] : 'default';
		$result = "\t\t" . '<tr><td colspan="2">' . $field['label'] .
			'<br /><textarea name="wyswyg_' . $field['name'] . '" class="tinymce_' . $preset .
			'" cols="80" rows="25" style="width: 100%; height: ' .
			$field['height'].';">'.str_replace('$(httpRoot)', Eresus_CMS::getLegacyKernel()->root,
			EncodeHTML($value)).'</textarea></td></tr>'."\n";

		if (!self::$scriptsInstalled)
		{
			Eresus_Kernel::app()->getPage()->linkScripts($this->root.'tiny_mce.js');
			Eresus_Kernel::app()->getPage()->linkScripts($this->root.'presets/'.$preset.'.js');
			self::$scriptsInstalled = true;
		}

		return $result;
	}
319976
public void field2in(Object o, String field, Object to) {
        field = field.trim();
        if (field.indexOf(' ') > 0) {           // maybe multiple field names given
            String[] fields = field.split("\\s+");
            for (String f : fields) {
                field2in(o, f, to, f);
            }
        } else {
            field2in(o, field, to, field);
        }
    }
269502
private static String convertFieldValueToString(final JBBPAbstractArrayField<?> field) {
    final StringBuilder result;
    if (field instanceof JBBPFieldArrayBit) {
      final JBBPFieldArrayBit array = (JBBPFieldArrayBit) field;
      result = new StringBuilder(array.size());
      for (final byte b : array.getArray()) {
        result.append((char) (b & 0xFF));
      }
    } else if (field instanceof JBBPFieldArrayByte) {
      final JBBPFieldArrayByte array = (JBBPFieldArrayByte) field;
      result = new StringBuilder(array.size());
      for (final byte b : array.getArray()) {
        result.append((char) (b & 0xFF));
      }
    } else if (field instanceof JBBPFieldArrayUByte) {
      final JBBPFieldArrayUByte array = (JBBPFieldArrayUByte) field;
      result = new StringBuilder(array.size());
      for (final byte b : array.getArray()) {
        result.append((char) (b & 0xFF));
      }
    } else if (field instanceof JBBPFieldArrayShort) {
      final JBBPFieldArrayShort array = (JBBPFieldArrayShort) field;
      result = new StringBuilder(array.size());
      for (final short b : array.getArray()) {
        result.append((char) b);
      }
    } else if (field instanceof JBBPFieldArrayUShort) {
      final JBBPFieldArrayUShort array = (JBBPFieldArrayUShort) field;
      result = new StringBuilder(array.size());
      for (final short b : array.getArray()) {
        result.append((char) b);
      }
    } else {
      result = null;
    }
    return result == null ? null : result.toString();
  }
621075
Rule FieldBook() {
		return Sequence(String("B:"),
				ZeroOrMore(WSP()).suppressNode(),
				TexText(), HeaderEol()).label(FieldBook);
	}
1353394
Rule IfieldHistory() {
		return Sequence(String("[H:"),
				ZeroOrMore(WSP()).suppressNode(),
				TexTextIfield(),
				String("]"))
			.label(IfieldHistory);
	}
1278923
def tail_field(field):
    
    if field == "." or field==None:
        return ".", "."
    elif "." in field:
        if "\\." in field:
            return tuple(k.replace("\a", ".") for k in field.replace("\\.", "\a").split(".", 1))
        else:
            return field.split(".", 1)
    else:
        return field, "."
250113
public static Area parse(String s) {
        Matcher m = PATTERN.matcher(s);
        if(m.matches())
            return new Area(Integer.parseInt(m.group(1)),Integer.parseInt(m.group(2)));
        return null;
    }
581278
Rule IfieldOrigin() {
		return Sequence(String("[O:"),
				ZeroOrMore(WSP()).suppressNode(),
				TexTextIfield(),
				String("]"))
			.label(IfieldOrigin);
	}