/// <summary> /// Iterate extended names. /// </summary> /// /// <param name="result">stores the result codepoint and name</param> /// <param name="limit">last codepoint + 1 in range to search</param> /// <returns>false if a codepoint with a name is found and we can bail from /// further iteration, true to continue on with the iteration (this /// will always be false for valid codepoints)</returns> private bool IterateExtended(ValueIterator_Constants.Element result, int limit) { while (m_current_ < limit) { String name = m_name_.GetExtendedOr10Name(m_current_); if (name != null && name.Length > 0) { result.integer = m_current_; result.value_ren = name; return(false); } ++m_current_; } return(true); }
/// <summary> /// Iterate extended names. /// </summary> /// <param name="result">Stores the result codepoint and name.</param> /// <param name="limit">Last codepoint + 1 in range to search.</param> /// <returns>false if a codepoint with a name is found and we can /// bail from further iteration, true to continue on with the /// iteration (this will always be false for valid codepoints).</returns> private bool IterateExtended(ValueEnumeratorElement result, int limit) { while (m_current_ < limit) { string name = m_name_.GetExtendedOr10Name(m_current_); if (name != null && name.Length > 0) { result.Integer = m_current_; result.Value = name; return(false); } ++m_current_; } return(true); }