author Gerald Squelart <>
Thu, 26 May 2016 19:24:35 +1000
changeset 371291 89a24835ba7432bffb9c0c095a98a619a5750658
parent 196034 bda1cceef8d22643b72ceefe2b95d31cd4c79663
child 489668 cbb8fdf1daf98a15f7d57f6b08d273bdf96aa1a0
child 604743 00518e4b68f181bd38e71eb944c683ef494f2261
permissions -rw-r--r--
Bug 1271483 - p16. gtest for list-string functions - r?cpearce Because it is templated code inside a cpp, the test includes a copy of that code. When we make this more public, the test should then include the proper header instead. MozReview-Commit-ID: 3vOvaj5VVhm

/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */
#ifndef nsIStringCharsetDetector_h__
#define nsIStringCharsetDetector_h__

#include "nsISupports.h"
#include "nsDetectionConfident.h"

// {12BB8F15-2389-11d3-B3BF-00805F8A6670}
{ 0x12bb8f15, 0x2389, 0x11d3, { 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }


  This interface is similar to nsICharsetDetector
  The difference is it is for line base detection instead of block based 

class nsIStringCharsetDetector : public nsISupports {

     Perform the charset detection
     aBytesArray- the bytes
     aLen- the length of the bytes
     oCharset- the charset answer
     oConfident - the confidence of the answer
  NS_IMETHOD DoIt(const char* aBytesArray, uint32_t aLen, 
                    const char** oCharset, nsDetectionConfident &oConfident) = 0;


#endif /* nsIStringCharsetDetector_h__ */