Lines Matching refs:script
350 bool SkScriptEngine2::evaluateDot(const char*& script) {
351 size_t fieldLength = token_length(++script); // skip dot
353 const char* field = script;
354 script += fieldLength;
360 return evaluateDotParam(script, field, fieldLength);
365 bool SkScriptEngine2::evaluateDotParam(const char*& script, const char* field, size_t fieldLength) {
372 while (is_ws(ch = script[0]))
373 script++;
380 success = functionParams(&script, ¶ms);
391 if (strncmp(*scriptPtr, "#script:", sizeof("#script:") - 1) == 0) {
392 *scriptPtr += sizeof("#script:") - 1;
401 const char* script = *scriptPtr;
403 while (is_ws(ch = script[0]))
404 script++;
465 const char* script = *scriptPtr;
472 while ((ch = script[0]) != '\0') {
474 script++;
482 success = innerScript(&script, &tokenValue); // terminate and return on comma, close brace
501 SkASSERT(token_length(script) > 0);
508 if (handleFunction(&script) == false)
517 if (handleArrayIndexer(&script) == false)
530 if (ch == '0' && (script[1] & ~0x20) == 'X') {
532 script += 2;
533 script = SkParse::FindHex(script, (uint32_t*) &operand.fOperand.fS32);
534 SkASSERT(script);
541 dotCheck = SkParse::FindS32(script, &operand.fOperand.fS32);
543 script = dotCheck;
548 script = SkParse::FindScalar(script, &operand.fOperand.fScalar);
556 int length = token_length(script);
559 fToken = script;
561 script += length;
569 ++script;
570 const char* stringStart = script;
572 if (script[0] == '\\')
573 ++script;
574 ++script;
575 SkASSERT(script[0]); // !!! throw an error
576 } while (script[0] != startQuote);
577 operand.fOperand.fString->set(stringStart, script - stringStart);
578 script = stringStart;
581 if (script[0] == '\\')
582 ++script;
583 *stringWrite++ = script[0];
584 ++script;
585 SkASSERT(script[0]); // !!! throw an error
586 } while (script[0] != startQuote);
587 ++script;
599 int tokenLength = token_length(++script);
600 const char* token = script;
601 script += tokenLength;
612 success = evaluateDotParam(script, token, tokenLength);
618 success = evaluateDot(script);
628 script++;
638 if (handleArrayIndexer(&script) == false)
646 script++;
669 script++;
673 char nextChar = script[1];
680 script += advance;
759 *scriptPtr = script;
1485 const char* script = scriptTests[index].fScript;
1486 const char* scriptPtr = script;
1493 SkDEBUGF(("script '%s' == value %d != expected answer %d\n", script, value.fOperand.fS32, scriptTests[index].fIntAnswer));
1500 SkDEBUGF(("script '%s' == value %g != expected answer %g\n", script, value.fOperand.fScalar / (1.0f * SK_Scalar1), scriptTests[index].fScalarAnswer / (1.0f * SK_Scalar1)));