============================================================================= Style_StrGetSizeStr()
| 2487 | // Style_StrGetSizeStr() |
| 2488 | // |
| 2489 | BOOL Style_StrGetSizeStr ( LPCWSTR lpszStyle, LPWSTR lpszSize, int cchSize ) |
| 2490 | { |
| 2491 | WCHAR tch[256]; |
| 2492 | WCHAR *p; |
| 2493 | if ( p = StrStrI ( lpszStyle, L"size:" ) ) { |
| 2494 | lstrcpy ( tch, p + CSTRLEN ( L"size:" ) ); |
| 2495 | if ( p = StrChr ( tch, L';' ) ) { |
| 2496 | *p = L'\0'; |
| 2497 | } |
| 2498 | TrimString ( tch ); |
| 2499 | lstrcpyn ( lpszSize, tch, cchSize ); |
| 2500 | return TRUE; |
| 2501 | } |
| 2502 | return FALSE; |
| 2503 | } |
| 2504 | |
| 2505 | |
| 2506 | //============================================================================= |
no test coverage detected