Lines Matching defs:mode
88 /// Tracks the current 'mode' of the transformation algorithm as it scans
91 /// The mode is a tri-state which tracks the case of the last cased
94 /// than the mode is `Boundary`. If the last cased character is lowercase,
95 /// then the mode is `Lowercase`. Othertherwise, the mode is
113 let mut mode = WordMode::Boundary;
125 // The mode including the current character, assuming the
132 mode
144 mode = WordMode::Boundary;
148 } else if mode == WordMode::Uppercase && c.is_uppercase() && next.is_lowercase() {
156 mode = WordMode::Boundary;
158 // Otherwise no word boundary, just update the mode
160 mode = next_mode;