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

Function ValidStyledText

scintilla/src/Editor.cxx:1836–1850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1834}
1835
1836bool ValidStyledText ( ViewStyle &vs, size_t styleOffset, const StyledText &st )
1837{
1838 if ( st.multipleStyles ) {
1839 for ( size_t iStyle = 0; iStyle < st.length; iStyle++ ) {
1840 if ( !vs.ValidStyle ( styleOffset + st.styles[iStyle] ) ) {
1841 return false;
1842 }
1843 }
1844 } else {
1845 if ( !vs.ValidStyle ( styleOffset + st.style ) ) {
1846 return false;
1847 }
1848 }
1849 return true;
1850}
1851
1852static int WidthStyledText ( Surface *surface, ViewStyle &vs, int styleOffset,
1853 const char *text, const unsigned char *styles, size_t len )

Callers 2

PaintSelMarginMethod · 0.85
DrawAnnotationMethod · 0.85

Calls 1

ValidStyleMethod · 0.80

Tested by

no test coverage detected