src/Generic/theories/Sentence.cpp
// I think this only makes sense for English, but it won't do any harm being
// at the language-independent level.

I think this only makes sense for English, but it won't do any harm being
at the language-independent level.
I think this only makes sense for English but it won ' t do any harm being at the language - independent level .
int Sentence::getSentenceCase() const {
	bool is_all_upper = true;
	bool is_all_lower = true;
	if (_content == 0)
		return MIXED;
	for (int k = 0; k < _content->length(); k++) {
		if (iswupper(_content->charAt(k))) {
			is_all_lower = false;
			if (!is_all_upper)
				return MIXED;
		} else if (iswlower(_content->charAt(k))) {
			is_all_upper = false;
			if (!is_all_lower)
				return MIXED;
		} 
	}
	if (is_all_lower)
		return LOWER;
	else if (is_all_upper)
		return UPPER;
	else return MIXED;
}
int Sentence :: getSentenceCase ( ) const { bool is_all_upper = true ; bool is_all_lower = true ; if ( _content == 0 ) return MIXED ; for ( int k = 0 ; k < _content -> length ( ) ; k ++ ) { if ( iswupper ( _content -> charAt ( k ) ) ) { is_all_lower = false ; if ( ! is_all_upper ) return MIXED ; } else if ( iswlower ( _content -> charAt ( k ) ) ) { is_all_upper = false ; if ( ! is_all_lower ) return MIXED ; } } if ( is_all_lower ) return LOWER ; else if ( is_all_upper ) return UPPER ; else return MIXED ; }
I think this only makes sense for English, but it won't do any harm being
at the language-independent level.
I think this only makes sense for English but it won ' t do any harm being at the language - independent level .
// this will happen for faked DocTheorys
