Server IP : 103.119.228.120 / Your IP : 3.144.86.38 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/include/layout/ |
Upload File : |
/* ********************************************************************** * Copyright (C) 1998-2011, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ #ifndef __LEINSERTIONLIST_H #define __LEINSERTIONLIST_H #include "LETypes.h" U_NAMESPACE_BEGIN struct InsertionRecord; #ifndef U_HIDE_INTERNAL_API /** * This class encapsulates the callback used by <code>LEInsertionList</code> * to apply an insertion from the insertion list. * * @internal */ class U_LAYOUT_API LEInsertionCallback { public: /** * This method will be called by <code>LEInsertionList::applyInsertions</code> for each * entry on the insertion list. * * @param atPosition the position of the insertion * @param count the number of glyphs to insert * @param newGlyphs the address of the glyphs to insert * * @return <code>TRUE</code> if <code>LEInsertions::applyInsertions</code> should * stop after applying this insertion. * * @internal */ virtual le_bool applyInsertion(le_int32 atPosition, le_int32 count, LEGlyphID newGlyphs[]) = 0; /** * The destructor */ virtual ~LEInsertionCallback(); }; /** * This class is used to keep track of insertions to an array of * <code>LEGlyphIDs</code>. The insertions are kept on a linked * list of <code>InsertionRecords</code> so that the glyph array * doesn't have to be grown for each insertion. The insertions are * stored on the list from leftmost to rightmost to make it easier * to do the insertions. * * The insertions are applied to the array by calling the * <code>applyInsertions</code> method, which calls a client * supplied <code>LEInsertionCallback</code> object to actually * apply the individual insertions. * * @internal */ class LEInsertionList : public UObject { public: /** * Construct an empty insertion list. * * @param rightToLeft <code>TRUE</code> if the glyphs are stored * in the array in right to left order. * * @internal */ LEInsertionList(le_bool rightToLeft); /** * The destructor. */ ~LEInsertionList(); /** * Add an entry to the insertion list. * * @param position the glyph at this position in the array will be * replaced by the new glyphs. * @param count the number of new glyphs * @param success set to an error code if the auxillary data cannot be retrieved. * * @return the address of an array in which to store the new glyphs. This will * <em>not</em> be in the glyph array. * * @internal */ LEGlyphID *insert(le_int32 position, le_int32 count, LEErrorCode &success); /** * Return the number of new glyphs that have been inserted. * * @return the number of new glyphs which have been inserted * * @internal */ le_int32 getGrowAmount(); /** * Call the <code>LEInsertionCallback</code> once for each * entry on the insertion list. * * @param callback the <code>LEInsertionCallback</code> to call for each insertion. * * @return <code>TRUE</code> if <code>callback</code> returned <code>TRUE</code> to * terminate the insertion list processing. * * @internal */ le_bool applyInsertions(LEInsertionCallback *callback); /** * Empty the insertion list and free all associated * storage. * * @internal */ void reset(); /** * ICU "poor man's RTTI", returns a UClassID for the actual class. * * @stable ICU 2.8 */ virtual UClassID getDynamicClassID() const; /** * ICU "poor man's RTTI", returns a UClassID for this class. * * @stable ICU 2.8 */ static UClassID getStaticClassID(); private: /** * The head of the insertion list. * * @internal */ InsertionRecord *head; /** * The tail of the insertion list. * * @internal */ InsertionRecord *tail; /** * The total number of new glyphs on the insertion list. * * @internal */ le_int32 growAmount; /** * Set to <code>TRUE</code> if the glyphs are in right * to left order. Since we want the rightmost insertion * to be first on the list, we need to append the * insertions in this case. Otherwise they're prepended. * * @internal */ le_bool append; }; #endif /* U_HIDE_INTERNAL_API */ U_NAMESPACE_END #endif