Difference between revisions of "Text Tips"

From FM Plugin Wikipedia
Jump to: navigation, search
(Compare dataVect Text Value)
 
(6 intermediate revisions by 3 users not shown)
Line 6: Line 6:
 
This page is about editing text passed from FileMaker to your plugin.
 
This page is about editing text passed from FileMaker to your plugin.
  
=Text Pubic Functions=
+
=Text Public Functions=
 
*[[ulong GetSize() const]]
 
*[[ulong GetSize() const]]
 +
  
 
*[[void Assign ( const char *s, Encoding encoding = kEncoding_Native )]]
 
*[[void Assign ( const char *s, Encoding encoding = kEncoding_Native )]]
 
*[[void AssignWide ( const wchar_t *s )]]
 
*[[void AssignWide ( const wchar_t *s )]]
 
*[[void AssignUnicode ( const ushort *s )]]
 
*[[void AssignUnicode ( const ushort *s )]]
 +
  
 
*[[void AssignWithLength ( const char *s, ulong strlength, Encoding encoding = kEncoding_Native )]]
 
*[[void AssignWithLength ( const char *s, ulong strlength, Encoding encoding = kEncoding_Native )]]
 
*[[void AssignWideWithLength ( const wchar_t *s, ulong strlength )]]
 
*[[void AssignWideWithLength ( const wchar_t *s, ulong strlength )]]
 
*[[void AssignUnicodeWithLength ( const ushort *s, ulong strlength )]]
 
*[[void AssignUnicodeWithLength ( const ushort *s, ulong strlength )]]
 +
  
 
*[[void GetBytes ( char *charbuffer, ulong buffersize, ulong position = 0, ulong size = kSize_End, Encoding encoding = kEncoding_Native ) const]]
 
*[[void GetBytes ( char *charbuffer, ulong buffersize, ulong position = 0, ulong size = kSize_End, Encoding encoding = kEncoding_Native ) const]]
 +
  
 
*[[void GetUnicode ( ushort *unicodebuffer, ulong position, ulong size ) const]]
 
*[[void GetUnicode ( ushort *unicodebuffer, ulong position, ulong size ) const]]
 +
  
 
*[[void SetText ( const Text &other, ulong position = 0, ulong size = kSize_End )]]
 
*[[void SetText ( const Text &other, ulong position = 0, ulong size = kSize_End )]]
Line 25: Line 30:
 
*[[void InsertText ( const Text &other, ulong position )]]
 
*[[void InsertText ( const Text &other, ulong position )]]
 
*[[void DeleteText ( ulong positionToDelete, ulong sizeToDelete = kSize_End )]]
 
*[[void DeleteText ( ulong positionToDelete, ulong sizeToDelete = kSize_End )]]
 +
  
 
*[[ulong Find ( const Text &other, ulong position ) const]]
 
*[[ulong Find ( const Text &other, ulong position ) const]]
Line 30: Line 36:
 
*[[ulong FindIgnoringCase ( const Text &other, ulong position ) const]]
 
*[[ulong FindIgnoringCase ( const Text &other, ulong position ) const]]
 
*[[ulong FindPrevIgnoringCase ( const Text &other, ulong position ) const]]
 
*[[ulong FindPrevIgnoringCase ( const Text &other, ulong position ) const]]
 +
  
 
*[[void Uppercase ()]]
 
*[[void Uppercase ()]]
 
*[[void Lowercase ()]]
 
*[[void Lowercase ()]]
 +
  
 
*[[void GetStyle( CharacterStyle& style, ulong position ) const]]
 
*[[void GetStyle( CharacterStyle& style, ulong position ) const]]
Line 39: Line 47:
  
 
*[[void SetStyle( const CharacterStyle& style, ulong position = 0, ulong size = kSize_End )]]
 
*[[void SetStyle( const CharacterStyle& style, ulong position = 0, ulong size = kSize_End )]]
 +
  
 
*[[void RemoveStyle( const CharacterStyle& style )]]
 
*[[void RemoveStyle( const CharacterStyle& style )]]
 +
  
 
*[[void ResetAllStyleBuffers()]]
 
*[[void ResetAllStyleBuffers()]]
Line 51: Line 61:
 
*[[bool operator gtr ( const Text &that ) const]]
 
*[[bool operator gtr ( const Text &that ) const]]
 
*[[bool operator gtr= ( const Text &that ) const]]
 
*[[bool operator gtr= ( const Text &that ) const]]
 +
  
 
*[[void operator delete ( void *obj )]]
 
*[[void operator delete ( void *obj )]]
 
 
 
  
 
=Example Text Functions=
 
=Example Text Functions=

Latest revision as of 10:00, 24 June 2009


This page is about editing text passed from FileMaker to your plugin.

Text Public Functions














Example Text Functions

Compare dataVect Text Value

I have found the following function useful for easy compare of a dataVect against a pre-defined text field. dataVectCompare