allPairsLength() :
This function returns the length of the allPairs array. It does this by accessing the length property of the allPairs array and returning it as a uint. (autogenerated documentation)
createPair(address,address) :
This function creates a new pair of tokens. It takes two addresses as parameters, tokenA and tokenB, and returns the address of the newly created pair. It first checks that the two addresses are not the same, and then it sorts them so that tokenA is always the smaller address. It then checks that neither address is the address of a zero account. It then checks that a pair with these two tokens does not already exist. It then creates a new pair using the create2 function, passing in the bytecode of the PancakePair contract, a salt, and the two token addresses. Finally, it stores the address of the new pair in the getPair mapping, adds it to the allPairs array, (autogenerated documentation)
setFeeTo(address) :
This function allows the feeToSetter address to set the feeTo address. This is done by requiring that the msg.sender is equal to the feeToSetter address, and if it is, then the feeTo address is set to the address passed in as an argument. (autogenerated documentation)
setFeeToSetter(address) :
This function allows the feeToSetter address to set the feeToSetter address. It works by requiring that the msg.sender is equal to the feeToSetter address, and if it is, then the feeToSetter address is set to the address passed in as an argument. (autogenerated documentation)