unit_index = 1; // entries at index 0 are sentinels
// construct "pattern" from "data"
- while (!isEndOfData (buffer)) {
- if (pattern_index > 20) return false;
- pattern[pattern_index] = nextToken (buffer);
- if (pattern[pattern_index] == 'E') return false;
+ while (!isEndOfData(buffer)) {
+ if (pattern_index > 20)
+ return false;
+ pattern[pattern_index] = nextToken(buffer);
+ if (pattern[pattern_index] == 'E')
+ return false;
++pattern_index;
}
pattern[pattern_index] = '\0';
pattern[pattern_index] = '\0';
// only the most basic pattern is accepted here
- if (compare(pattern, "nu") != 0) return false;
+ if (compare(pattern, "nu") != 0)
+ return false;
// It _was_ a correct length string.
// Store away the values we found.
{}
-VSpace::VSpace(vspace_kind k)
+VSpace::VSpace(VSpaceKind k)
: kind_(k), len_(), keep_(false)
{}
}
-VSpace::vspace_kind VSpace::kind() const
-{
- return kind_;
-}
-
-
-GlueLength const & VSpace::length() const
-{
- return len_;
-}
-
-
-bool VSpace::keep() const
-{
- return keep_;
-}
-
-
-void VSpace::setKeep(bool val)
-{
- keep_ = val;
-}
-
-
bool VSpace::operator==(VSpace const & other) const
{
if (kind_ != other.kind_)
switch (kind_) {
case DEFSKIP:
- return bv.buffer()->params().getDefSkip().inPixels(bv);
+ return bv.buffer().params().getDefSkip().inPixels(bv);
// This is how the skips are normally defined by LateX.
// But there should be some way to change this per document.