Lines Matching defs:num
1239 *rgb: rgb '('S*{num}%?S* ',' {num}#?S*,S*{num}#?S*')'
1250 CRNum *num = NULL;
1281 status = cr_tknzr_parse_num (a_this, &num);
1282 ENSURE_PARSING_COND ((status == CR_OK) && (num != NULL));
1284 red = (glong)num->val;
1285 cr_num_destroy (num);
1286 num = NULL;
1300 status = cr_tknzr_parse_num (a_this, &num);
1301 ENSURE_PARSING_COND ((status == CR_OK) && (num != NULL));
1310 green = (glong)num->val;
1312 blue = (glong)num->val;
1315 if (num) {
1316 cr_num_destroy (num);
1317 num = NULL;
1351 if (num) {
1352 cr_num_destroy (num);
1353 num = NULL;
1463 *Parses a num as defined in the css spec [4.1.1]:
1472 *Technically, the "num" construction as defined
2382 CRNum *num = NULL;
2384 status = cr_tknzr_parse_num (a_this, &num);
2385 if (status == CR_OK && num) {
2393 num->type = NUM_LENGTH_EM;
2395 num);
2396 num = NULL;
2400 num->type = NUM_LENGTH_EX;
2402 num);
2403 num = NULL;
2407 num->type = NUM_LENGTH_PX;
2409 (token, num, LENGTH_PX_ET);
2410 num = NULL;
2414 num->type = NUM_LENGTH_CM;
2416 (token, num, LENGTH_CM_ET);
2417 num = NULL;
2421 num->type = NUM_LENGTH_MM;
2423 (token, num, LENGTH_MM_ET);
2424 num = NULL;
2428 num->type = NUM_LENGTH_IN;
2430 (token, num, LENGTH_IN_ET);
2431 num = NULL;
2435 num->type = NUM_LENGTH_PT;
2437 (token, num, LENGTH_PT_ET);
2438 num = NULL;
2442 num->type = NUM_LENGTH_PC;
2444 (token, num, LENGTH_PC_ET);
2445 num = NULL;
2450 num->type = NUM_ANGLE_DEG;
2452 (token, num, ANGLE_DEG_ET);
2453 num = NULL;
2458 num->type = NUM_ANGLE_RAD;
2460 (token, num, ANGLE_RAD_ET);
2461 num = NULL;
2467 num->type = NUM_ANGLE_GRAD;
2469 (token, num, ANGLE_GRAD_ET);
2470 num = NULL;
2474 num->type = NUM_TIME_MS;
2476 (token, num, TIME_MS_ET);
2477 num = NULL;
2480 num->type = NUM_TIME_S;
2482 (token, num, TIME_S_ET);
2483 num = NULL;
2487 num->type = NUM_FREQ_HZ;
2489 (token, num, FREQ_HZ_ET);
2490 num = NULL;
2495 num->type = NUM_FREQ_KHZ;
2497 (token, num, FREQ_KHZ_ET);
2498 num = NULL;
2501 num->type = NUM_PERCENTAGE;
2503 (token, num);
2504 num = NULL;
2510 num->type = NUM_UNKNOWN_TYPE;
2512 (token, num, str);
2513 num = NULL;
2519 (token, num);
2520 num = NULL;
2525 if (token && token->u.num) {
2527 &token->u.num->location) ;
2671 *((CRNum **) a_res) = token->u.num;
2672 token->u.num = NULL;
2681 *((CRNum **) a_res) = token->u.num;
2682 token->u.num = NULL;
2688 *((CRNum **) a_res) = token->u.num;
2695 token->u.num = NULL;