From 3b031e3e5ec28064ce2bb4e67e0d9e48a40ee594 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 18 Apr 2003 10:19:52 +0000 Subject: New methods for finding the next or previous position taking multi byte characters into account. --- include/Scintilla.h | 2 ++ include/Scintilla.iface | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index c377d07cc..470425e76 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -535,6 +535,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_PARADOWNEXTEND 2414 #define SCI_PARAUP 2415 #define SCI_PARAUPEXTEND 2416 +#define SCI_POSITIONBEFORE 2417 +#define SCI_POSITIONAFTER 2418 #define SCI_STARTRECORD 3001 #define SCI_STOPRECORD 3002 #define SCI_SETLEXER 4001 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 8ad828cd0..3b71a37a3 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1441,6 +1441,14 @@ fun void ParaDownExtend=2414(,) fun void ParaUp=2415(,) fun void ParaUpExtend=2416(,) +# Given a valid document position, return the previous position taking code +# page into account. Returns 0 if passed 0. +fun position PositionBefore=2417(position pos,) + +# Given a valid document position, return the next position taking code +# page into account. Maximum value returned is the last position in the document. +fun position PositionAfter=2418(position pos,) + # Start notifying the container of all key presses and commands. fun void StartRecord=3001(,) -- cgit v1.2.3