Exemplo n.º 1
0
        }        //end IndexOfStartsWithI

        public string ToString(string sFieldDelimiter, string sTextDelimiter)
        {
            string sReturn = "";

            for (int iNow = 0; iNow < iCount_PlusFirstIsOneAfterLast; iNow++)
            {
                string sNow = Peek(iNow);
                if (RString.IsNotBlank(sTextDelimiter))
                {
                    if (sNow.Contains(sTextDelimiter))
                    {
                        sNow = sNow.Replace(sTextDelimiter, sTextDelimiter + sTextDelimiter);
                        sNow = sTextDelimiter + sNow + sTextDelimiter;
                    }
                }
                sReturn += (iNow == 0?"":sFieldDelimiter) + sNow;
            }
            return(sReturn);
        }        //end ToString()
Exemplo n.º 2
0
 /// <summary>
 /// formerly (int iAbsoluteIndex_SourceFileAsString, string sMsg, string sParticiple, string sFunction) overload
 /// </summary>
 /// <param name="sMsg"></param>
 /// <param name="sParticiple"></param>
 /// <param name="sFunction"></param>
 public static void SourceErr(string sMsg, string sFile, int iAbsoluteIndex_SourceFileAsString, string sParticiple, string sFunction)          //formerly SyntaxErr, formerly ScriptErr
 {
     Error_WriteDateIfFirstLine();
     Console.Error.WriteLine(((sFile != null)?sFile:"generated.script.or.unknown.file.or.unsaved.file") + AbsoluteIndexToParenPhrase(iAbsoluteIndex_SourceFileAsString) + ":" + sMsg + (RString.IsNotBlank(sFunction)?" (checked by " + sFunction + ")":"") + ParticipleToAdverbClause(sParticiple));   //TODO: collect source errors
 }
Exemplo n.º 3
0
 public static bool IsNotBlank(RString sNow)          //formerly IsUsedString
 {
     return(RString.IsNotBlank(sNow));
 }