Beispiel #1
0
        public void Test_ParseXRefPointer()
        {
            string xref;
            string rest = GEDCOMUtils.ParseXRefPointer(" @I001@", out xref);

            Assert.AreEqual("", rest);
            Assert.AreEqual("I001", xref);

            rest = GEDCOMUtils.ParseXRefPointer(" ptr text", out xref);
            Assert.AreEqual("ptr text", rest);
            Assert.AreEqual("", xref);

            rest = GEDCOMUtils.ParseXRefPointer(" ", out xref);
            Assert.AreEqual("", rest);
            Assert.AreEqual("", xref);

            rest = GEDCOMUtils.ParseXRefPointer("", out xref);
            Assert.AreEqual("", rest);
            Assert.AreEqual("", xref);
        }
Beispiel #2
0
 public override string ParseString(string strValue)
 {
     return(GEDCOMUtils.ParseXRefPointer(strValue, out fXRef));
 }
Beispiel #3
0
 public override string ParseString(string strValue)
 {
     // here XRef is a pure value without delimiters
     return(GEDCOMUtils.ParseXRefPointer(strValue, out fXRef));
 }