MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Style_StrGetSizeStr

Function Style_StrGetSizeStr

src/Styles.c:2489–2503  ·  view source on GitHub ↗

============================================================================= Style_StrGetSizeStr()

Source from the content-addressed store, hash-verified

2487// Style_StrGetSizeStr()
2488//
2489BOOL 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//=============================================================================

Callers 1

Style_SelectColorFunction · 0.85

Calls 1

TrimStringFunction · 0.85

Tested by

no test coverage detected