SILUBS.ScriptureChecks.QuotationMarkCategorizer.CanStyleContinueQuotation C# (CSharp) Method

CanStyleContinueQuotation() private method

Determines whether the specified style name is legitimate for continuing a quotation.
private CanStyleContinueQuotation ( string styleName, string prevStyleName ) : bool
styleName string
prevStyleName string
return bool
		internal bool CanStyleContinueQuotation(string styleName, string prevStyleName)
		{
			if (m_styleInfo != null && m_styleInfo.SentenceInitial != null)
			{
				foreach (StyleInfo spi in m_styleInfo.SentenceInitial)
				{
					if (spi.StyleName == styleName)
					{
						if (spi.UseType == StyleInfo.UseTypes.prose)
							return true;

						if (spi.UseType == StyleInfo.UseTypes.line && IsProseOrStanzaBreak(prevStyleName))
							return true;
					}
				}
			}

			return false;
		}