| 1834 | } |
| 1835 | |
| 1836 | bool 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 | |
| 1852 | static int WidthStyledText ( Surface *surface, ViewStyle &vs, int styleOffset, |
| 1853 | const char *text, const unsigned char *styles, size_t len ) |
no test coverage detected