Update the text that will be rendered for the given input text.
423831
public void setText(String input, String output) {
    stringMap.put(input, output);
    invalidate();
  }
461215
function renderText(args, that) {
  if (isNewTextVersion) {
    args[0] = { ...args[0], children: pseudoText(args[0].children) };
    return defaultTextRender.apply(that, args);
  } else {
    const element = defaultTextRender.apply(that, args);
    return React.cloneElement(element, {
      children: pseudoText(element.props.children)
    });
  }
}
909891
def _on_text_changed(self):
        
        if not self._cleaning:
            ln = TextHelper(self).cursor_position()[0]
            self._modified_lines.add(ln)
921602
public void setText(String text) {
        input.setText("");
        if (text != null) {
            input.append(text);
        }
    }
216603
public void setText(final String TEXT) {
        if (null == text) {
            _text = TEXT;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            text.set(TEXT);
        }
    }
111488
def text_has_changed(self, text):
        """"""
        text = to_text_string(text)
        if text:
            self.lineno = int(text)
        else:
            self.lineno = None
454350
protected void replaceText(CharSequence text) {
        switch (mAutoCompleteMode){
            case AUTOCOMPLETE_MODE_SINGLE:
                ((InternalAutoCompleteTextView)mInputView).superReplaceText(text);
                break;
            case AUTOCOMPLETE_MODE_MULTI:
                ((InternalMultiAutoCompleteTextView)mInputView).superReplaceText(text);
                break;
        }
    }
790384
def on_leTitle_textChanged(self):
        
        self.parent.pbnNext.setEnabled(bool(self.leTitle.text()))
32052
def replace(text):
  """"""
  for hex, value in UNICODE_DICTIONARY.items():
    num = int(hex[3:-1], 16)
    #uni = unichr(num)
    decimal = '&#' + str(num) + ';'
    for key in [ hex, decimal ]: #uni
      text = text.replace(key, value)
  return text
522606
private void updateGhostStyle() {

        if (CmsStringUtil.isEmpty(m_realValue)) {
            if (CmsStringUtil.isEmpty(m_ghostValue)) {
                updateTextArea(m_realValue);
                return;
            }
            if (!m_focus) {
                setGhostStyleEnabled(true);
                updateTextArea(m_ghostValue);
            } else {
                // don't show ghost mode while focused
                setGhostStyleEnabled(false);
            }
        } else {
            setGhostStyleEnabled(false);
            updateTextArea(m_realValue);
        }
    }
387031
def _update(self, data):
      '''
      '''
      self.bullet = data['bullet']
      self.level = data['level']
      self.text = WikiText(data['text_raw'],
                           data['text_rendered'])
1200445
function(value, sendUpdatedEvt) {
      this.hiddenEl.value = value || "";
      this.el.value  =  value || "";
      // "inherited" from inputex.Field :
      //    (can't inherit of inputex.StringField because would set this.el.value...)
      //
   // set corresponding style
   this.setClassFromState();

   if(sendUpdatedEvt !== false) {
      // fire update event
         this.fireUpdatedEvt();
      }
   }
1294622
def update(self, e=None, **f):
        """"""

        # Handle e first
        if e is not None:
            if hasattr(e, 'keys'):
                for k in e:
                    self[k.title()] = e[k]
            else:
                for (k, v) in e:
                    self[k.title()] = v

        # Now handle f
        if len(f):
            for k in f:
                self[k.title()] = f[k]
509894
private void updateTextArea(String value) {

        String oldValue = m_textArea.getValue();
        if (!oldValue.equals(value)) {
            int l1 = oldValue.split("\n").length;
            int l2 = value.split("\n").length;
            m_textArea.setValue(value);
            if (l1 != l2) {
                scheduleResize();
            }
        }
    }
846987
public void update() {
		super.update();

		if (!canModifyEditor()) {
			setEnabled(false);
			return;
		}

		ITextEditor editor= getTextEditor();
		if (fOperationTarget == null && editor != null)
			fOperationTarget= (ITextOperationTarget) editor.getAdapter(ITextOperationTarget.class);

		boolean isEnabled= (fOperationTarget != null && fOperationTarget.canDoOperation(ITextOperationTarget.PREFIX) && fOperationTarget.canDoOperation(ITextOperationTarget.STRIP_PREFIX));
		setEnabled(isEnabled);
	}
917802
def _updateImage(self):
        """"""
        # Fill the background of the image
        if self.backgroundColor is not None:
            self.textImage.fill(self.backgroundColor)

        # Render the text as a single line, and blit it onto the textImage surface
        if self.mask is None:
            lineSurface = self.font.render(self.text, True, self.textColor)
        else:
            nChars = len(self.text)
            maskedText = self.mask * nChars
            lineSurface = self.font.render(maskedText, True, self.textColor)
        self.textImage.blit(lineSurface, (0, 0))
642431
protected void updateText()
	{
		this.text.setLength(0);
		this.text.append(password.toString().replaceAll("(?s).", String.valueOf(passwordChar)));
		guiText.setText(text.toString());
	}