intl/lwbrk/src/rulebrk.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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