public CGitLsTreeRecord(string line) { int tab = line.IndexOf('\t'); int sp1 = line.IndexOf(' '); int sp2 = line.IndexOf(' ', sp1 + 1); Mode = NB.BaseToDecimal(line.Slice(0, sp1), 8); Id = ObjectId.FromString(line.Slice(sp2 + 1, tab)); Path = line.Substring(tab + 1); }
public void testDequote_RawLatin1() { AssertHelper.IgnoreOnMono(() => AssertDequote("\u00c5ngstr\u00f6m", (char)NB.BaseToDecimal("305", 8) + "ngstr" + (char)NB.BaseToDecimal("366", 8) + "m"), "Will fail in mono due to https://bugzilla.novell.com/show_bug.cgi?id=549914"); }