intl/lwbrk/src/rulebrk.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 /* 
     2 Copyright (c) 1999 Samphan Raruenrom <samphan@thai.com>
     3 Permission to use, copy, modify, distribute and sell this software
     4 and its documentation for any purpose is hereby granted without fee,
     5 provided that the above copyright notice appear in all copies and
     6 that both that copyright notice and this permission notice appear
     7 in supporting documentation.  Samphan Raruenrom makes no
     8 representations about the suitability of this software for any
     9 purpose.  It is provided "as is" without express or implied warranty.
    10 */
    11 #ifndef __RULEBRK_H__
    12 #define __RULEBRK_H__
    13 #include "th_char.h"
    15 #ifdef __cplusplus
    16 extern "C" {
    17 #endif
    19 int TrbWordBreakPos(const th_char *pstr, int left, 
    20                     const th_char *rstr, int right);
    21 int TrbFollowing(const th_char *begin, int length, int offset);
    23 #ifdef __cplusplus
    24 }
    25 #endif
    26 #endif

mercurial