Home | History | Annotate | Download | only in PdfViewer

Lines Matching refs:textOut

81     virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const = 0;
100 virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const {
104 textOut->text = new uint16_t[textIn.len / 2];
105 textOut->len = textIn.len / 2;
107 for (int i = 0; i < textOut->len; i++) {
108 textOut->text[i] = ((text[i] << 8) & 0xff00) | ((text[i] >> 8) & 0x00ff);
124 virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const {
128 textOut->text = new uint16_t[textIn.len];
129 textOut->len = textIn.len;
131 for (int i = 0; i < textOut->len; i++) {
132 textOut->text[i] = text[i];
147 virtual bool decodeText(const SkUnencodedText& textIn, SkDecodedText* textOut) const {
151 textOut->text = new uint16_t[textIn.len / 2];
152 textOut->len = textIn.len / 2;
154 for (int i = 0; i < textOut->len; i++) {
155 textOut->text[i] = ((text[i] << 8) & 0xff00) | ((text[i] >> 8) & 0x00ff);
212 void ToUnicode(const SkDecodedText& textIn, SkUnicodeText* textOut) const {
214 textOut->text = new uint16_t[textIn.len];
215 textOut->len = textIn.len;
217 textOut->text[i] = fToUnicode->fCMapEncoding[textIn.text[i]];
220 textOut->text = textIn.text;
221 textOut->len = textIn.len;