public void AllChars3() { foreach (var cur in RegisterNameUtil.RegisterNameChars) { Assert.True(RegisterNameUtil.CharToRegister(cur).IsSome()); } }
public void Unnamed() { Assert.Equal('"', RegisterName.Unnamed.Char.Value); Assert.Equal(RegisterName.Unnamed, RegisterNameUtil.CharToRegister('"').Value); }
public static Register GetRegister(this IVimBuffer buffer, char c) { var name = RegisterNameUtil.CharToRegister(c).Value; return(buffer.RegisterMap.GetRegister(name)); }
public static Register GetRegister(this IRegisterMap map, char c) { var name = RegisterNameUtil.CharToRegister(c).Value; return(map.GetRegister(name)); }